WPS: Fix credential processing for open network case
authorJouni Malinen <jouni.malinen@atheros.com>
Tue, 10 Nov 2009 15:01:26 +0000 (17:01 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 10 Nov 2009 15:01:26 +0000 (17:01 +0200)
commite542b40f9384beb8b19d0a8017bfae2487c6798d
tree8ff11ecd0fb3e4a484139c24b4cbce8beeeffcb5
parent1d68e4c7d975b519dc087ef3212ac79848721fb1
WPS: Fix credential processing for open network case

There is no point in comparing cred->key == NULL since cred->key is
an array (never NULL). key_len == 0 should be used instead to indicate
that no key was specified.
hostapd/wps_hostapd.c