aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-11-10 14:51:59 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-22 18:18:19 (GMT)
commitdd3cf8b78b3d62017ad9e43209e9967f9c360dd3 (patch)
treedf700cf0db0e0d8676b03c05ea9911e4a52aa235
parent6a87e10383d636fa9bcfec9d8545fda4b0a6649b (diff)
downloadhostap-06-dd3cf8b78b3d62017ad9e43209e9967f9c360dd3.zip
hostap-06-dd3cf8b78b3d62017ad9e43209e9967f9c360dd3.tar.gz
hostap-06-dd3cf8b78b3d62017ad9e43209e9967f9c360dd3.tar.bz2
Fix comparison to use correct symbol name (__rand vs. rand)
rand would be the address of rand() function and never NULL. The previous version could have crashed on invalid AKA-AUTS command. Though, these commands are only from hostapd which sends valid requests and as such, the actual issue did not show up. (cherry picked from commit 6689218ec77165de16e07a49b627cb41bdb327c1)
-rw-r--r--src/hlr_auc_gw/hlr_auc_gw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hlr_auc_gw/hlr_auc_gw.c b/src/hlr_auc_gw/hlr_auc_gw.c
index 5ff4e44..e318903 100644
--- a/src/hlr_auc_gw/hlr_auc_gw.c
+++ b/src/hlr_auc_gw/hlr_auc_gw.c
@@ -544,7 +544,7 @@ static void aka_auts(int s, struct sockaddr_un *from, socklen_t fromlen,
*auts++ = '\0';
__rand = strchr(auts, ' ');
- if (rand == NULL)
+ if (__rand == NULL)
return;
*__rand++ = '\0';