projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a8d8b3
)
Fix alloc validation in wpa_bss_get_bit_rates()
author
Jouni Malinen
<j@w1.fi>
Sat, 9 Jan 2010 21:56:09 +0000
(23:56 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sat, 9 Jan 2010 21:56:09 +0000
(23:56 +0200)
Need to check the value returned by os_malloc(), not the pointer to
this value.
wpa_supplicant/bss.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/bss.c
b/wpa_supplicant/bss.c
index
e2846b7
..
599879d
100644
(file)
--- a/
wpa_supplicant/bss.c
+++ b/
wpa_supplicant/bss.c
@@
-578,7
+578,7
@@
int wpa_bss_get_bit_rates(const struct wpa_bss *bss, u8 **rates)
len = (ie ? ie[1] : 0) + (ie2 ? ie2[1] : 0);
*rates = os_malloc(len);
- if (!rates)
+ if (!
*
rates)
return -1;
for (i = 0; ie && i < ie[1]; i++)