Skip to content

Commit

Permalink
gsupplicant: A network ssid of length 0 is valid, it's an hidden one
Browse files Browse the repository at this point in the history
In case of an hidden AP around, its ssid has a length of 0, but it is
obviously a valid network anyway.

Fixes such regression from commit 363393c

Reported by Sameer Naik
  • Loading branch information
Tomasz Bursztyka authored and pfl committed Dec 16, 2013
1 parent 8047f3d commit 91913c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gsupplicant/supplicant.c
Expand Up @@ -853,7 +853,7 @@ const char *g_supplicant_network_get_security(GSupplicantNetwork *network)
const void *g_supplicant_network_get_ssid(GSupplicantNetwork *network,
unsigned int *ssid_len)
{
if (!network || network->ssid_len == 0) {
if (!network) {
*ssid_len = 0;
return NULL;
}
Expand Down

0 comments on commit 91913c4

Please sign in to comment.