projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d68e4c
)
WPS: Fix credential processing for open network case
author
Jouni Malinen
<jouni.malinen@atheros.com>
Tue, 10 Nov 2009 15:01:26 +0000
(17:01 +0200)
committer
Jouni Malinen
<j@w1.fi>
Tue, 10 Nov 2009 15:01:26 +0000
(17:01 +0200)
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
patch
|
blob
|
history
diff --git
a/hostapd/wps_hostapd.c
b/hostapd/wps_hostapd.c
index
fd2e65a
..
1e9aeae
100644
(file)
--- a/
hostapd/wps_hostapd.c
+++ b/
hostapd/wps_hostapd.c
@@
-242,7
+242,7
@@
static int hostapd_wps_cred_cb(void *ctx, const struct wps_credential *cred)
hapd->wps->ssid_len = cred->ssid_len;
hapd->wps->encr_types = cred->encr_type;
hapd->wps->auth_types = cred->auth_type;
- if (cred->key
== NULL
) {
+ if (cred->key
_len == 0
) {
os_free(hapd->wps->network_key);
hapd->wps->network_key = NULL;
hapd->wps->network_key_len = 0;