knetworkmanager deserialize bug
- Date: Mon, 21 Jan 2008 08:15:19 -0800
- From: Howard Chu <hyc@xxxxxxxxx>
- Subject: knetworkmanager deserialize bug
The nmu_security_deserialize_* functions all assume that the initial message_type argument was already consumed before they're called. knetworkmanager's dispatcher was leaving it in place, causing stuff like nmu_security_deserialize_wpa_eap() to always fail. Paranoid fix attached...
-- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/
Index: knetworkmanager-nminfo_dbus.cpp
===================================================================
--- knetworkmanager-nminfo_dbus.cpp (revision 764376)
+++ knetworkmanager-nminfo_dbus.cpp (working copy)
@@ -318,6 +318,10 @@
break;
}
dbus_message_iter_get_basic (&iter, &we_cipher);
+ if (!dbus_message_iter_next (&iter))
+ {
+ kdWarning() << "int32 message argument 'we_cipher' was final element." << endl;
+ }
active_network->setEssid (QString::fromUtf8(essid));
active_network->insertHardwareAddress (bssid, true);
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
- Prev by Date: Re: Orphaned Kooka
- Next by Date: Re: Orphaned Kooka
- Previous by thread: Orphaned Kooka
- Next by thread: too-long color buttons in color kcm
- Index(es):