diff mbox series

[V2,4/4] allow empty string in dbus network properties

Message ID 20200716001743.4085346-5-matthewmwang@chromium.org
State Accepted
Headers show
Series allow reconfiguration of bgscan | expand

Commit Message

Matthew Wang July 16, 2020, 12:17 a.m. UTC
Signed-off-by: Matthew Wang <matthewmwang@chromium.org>
---
 wpa_supplicant/dbus/dbus_new_handlers.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c
index c5225ca99..a7ce20f2d 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers.c
@@ -229,8 +229,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);