]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
D-Bus: Allow empty string in dbus network properties
authorMatthew Wang <matthewmwang@chromium.org>
Thu, 16 Jul 2020 00:17:43 +0000 (17:17 -0700)
committerJouni Malinen <j@w1.fi>
Fri, 9 Oct 2020 13:50:36 +0000 (16:50 +0300)
This is needed for clearing previously set parameters in a similar
manner that was already available through the control interface
SET_NETWORK command.

Signed-off-by: Matthew Wang <matthewmwang@chromium.org>
wpa_supplicant/dbus/dbus_new_handlers.c

index 53e869488e24e6bd2d9e84d5e7137e7eb8cd24d6..66a0e21520ca5b9bff632c5463180730d0b57624 100644 (file)
@@ -230,8 +230,6 @@ dbus_bool_t set_network_properties(struct wpa_supplicant *wpa_s,
                } else if (entry.type == DBUS_TYPE_STRING) {
                        if (should_quote_opt(entry.key)) {
                                size = os_strlen(entry.str_value);
-                               if (size == 0)
-                                       goto error;
 
                                size += 3;
                                value = os_zalloc(size);