projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea20a1a
)
Fix comparison to use correct symbol name (__rand vs. rand)
author
Jouni Malinen
<jouni.malinen@atheros.com>
Tue, 10 Nov 2009 14:51:59 +0000
(16:51 +0200)
committer
Jouni Malinen
<j@w1.fi>
Tue, 10 Nov 2009 14:51:59 +0000
(16:51 +0200)
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.
src/hlr_auc_gw/hlr_auc_gw.c
patch
|
blob
|
history
diff --git
a/src/hlr_auc_gw/hlr_auc_gw.c
b/src/hlr_auc_gw/hlr_auc_gw.c
index
5ff4e44
..
e318903
100644
(file)
--- 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';