supplicant: fix crash passing invalid parameter to AddBlob when adding network
The DBUS method 'AddBlob' expects a data argument of type 'ay'.
Instead we passed the hash table 'blobs'.
This must be broken for a long time and surprisingly stayed unnoticed.
https://mail.gnome.org/archives/networkmanager-list/2014-July/msg00001.html
Fixes: fb6cde508c
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
@@ -1081,7 +1081,7 @@ add_network_cb (DBusGProxy *proxy, DBusGProxyCall *call_id, gpointer user_data)
|
||||
self,
|
||||
NULL,
|
||||
DBUS_TYPE_STRING, name,
|
||||
DBUS_TYPE_G_UCHAR_ARRAY, blobs,
|
||||
DBUS_TYPE_G_UCHAR_ARRAY, data,
|
||||
G_TYPE_INVALID);
|
||||
nm_call_store_add (priv->assoc_pcalls, priv->iface_proxy, call);
|
||||
}
|
||||
|
Reference in New Issue
Block a user