D-Bus: Allow empty string in dbus network properties

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>
master
Matthew Wang 4 years ago committed by Jouni Malinen
parent b2a1424659
commit 41d20df7f3

@ -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);

Loading…
Cancel
Save