summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index 974643f6..5303d643 100644
--- a/src/config.c
+++ b/src/config.c
@@ -191,6 +191,9 @@ is_protected_service(struct connman_config_service *service)
if (s->ssid == NULL || service->ssid == NULL)
continue;
+ if (s->ssid_len != service->ssid_len)
+ continue;
+
if (g_strcmp0(service->type, "wifi") == 0 &&
strncmp(s->ssid, service->ssid, s->ssid_len) == 0) {
return TRUE;