From: Johannes Berg Date: Wed, 2 Feb 2011 15:01:29 +0000 (+0200) Subject: DBus: Increase introspection buffer sizes X-Git-Tag: hostap-1-bp~599 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d7111418df7e24cf6ab4368bbf40ea441972c69;p=thirdparty%2Fhostap.git DBus: Increase introspection buffer sizes The P2P additions will add more data so that the current buffers aren't big enough. Signed-off-by: Johannes Berg --- diff --git a/wpa_supplicant/dbus/dbus_new_introspect.c b/wpa_supplicant/dbus/dbus_new_introspect.c index c660c0404..fd433df73 100644 --- a/wpa_supplicant/dbus/dbus_new_introspect.c +++ b/wpa_supplicant/dbus/dbus_new_introspect.c @@ -43,7 +43,7 @@ static struct interfaces * add_interface(struct dl_list *list, iface = os_zalloc(sizeof(struct interfaces)); if (!iface) return NULL; - iface->xml = wpabuf_alloc(3000); + iface->xml = wpabuf_alloc(6000); if (iface->xml == NULL) { os_free(iface); return NULL; @@ -250,7 +250,7 @@ DBusMessage * wpa_dbus_introspect(DBusMessage *message, DBusMessage *reply; struct wpabuf *xml; - xml = wpabuf_alloc(4000); + xml = wpabuf_alloc(8000); if (xml == NULL) return NULL;