summaryrefslogtreecommitdiff
path: root/plugins/wifi.c
diff options
context:
space:
mode:
authorHenrique Dante de Almeida <hdante@profusion.mobi>2012-05-08 16:20:45 -0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-05-09 17:14:08 +0300
commitd0c62ab0e5add1ae4a0e2effb45441ca0d968f65 (patch)
tree48d48f64708a58a86225b821fb2bbeea852cc410 /plugins/wifi.c
parentc7293b647bba1bedf986cf8df2c1d77fcbed3f09 (diff)
downloadconnman-d0c62ab0e5add1ae4a0e2effb45441ca0d968f65.tar.gz
connman-d0c62ab0e5add1ae4a0e2effb45441ca0d968f65.tar.bz2
connman-d0c62ab0e5add1ae4a0e2effb45441ca0d968f65.zip
wifi: Fix NULL ssid being passed to memcmp
Diffstat (limited to 'plugins/wifi.c')
-rw-r--r--plugins/wifi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index c303b6e0..89576b36 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -1551,7 +1551,7 @@ static void network_added(GSupplicantNetwork *supplicant_network)
if (ssid != NULL)
connman_network_set_group(network, group);
- if (wifi->hidden != NULL) {
+ if (wifi->hidden != NULL && ssid != NULL) {
if (wifi->hidden->ssid_len == ssid_len &&
memcmp(wifi->hidden->ssid, ssid,
ssid_len) == 0) {