aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/eapol_test.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-01-12 10:32:43 (GMT)
committerJouni Malinen <j@w1.fi>2013-01-12 10:32:43 (GMT)
commit42ad72029f45ad899274b600874f0ca850989555 (patch)
tree242c86f5c4c1ba0b39f8791de17dcc8169e47213 /wpa_supplicant/eapol_test.c
parentf96c1d76fd658ca24ffbd3474df82f67558dc56d (diff)
downloadhostap-42ad72029f45ad899274b600874f0ca850989555.zip
hostap-42ad72029f45ad899274b600874f0ca850989555.tar.gz
hostap-42ad72029f45ad899274b600874f0ca850989555.tar.bz2
eapol_test: Fix extra RADIUS attribute allocation
The sizeof(ptr) use here was not correct and resulted in too small memory block getting allocated for the -N command line argument. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/eapol_test.c')
-rw-r--r--wpa_supplicant/eapol_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/eapol_test.c b/wpa_supplicant/eapol_test.c
index 03b8c7e..c1349c9 100644
--- a/wpa_supplicant/eapol_test.c
+++ b/wpa_supplicant/eapol_test.c
@@ -1173,7 +1173,7 @@ int main(int argc, char *argv[])
wait_for_monitor++;
break;
case 'N':
- p1 = os_zalloc(sizeof(p1));
+ p1 = os_zalloc(sizeof(*p1));
if (p1 == NULL)
break;
if (!p)