From 42ad72029f45ad899274b600874f0ca850989555 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 12 Jan 2013 12:32:43 +0200 Subject: [PATCH] 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 --- wpa_supplicant/eapol_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/eapol_test.c b/wpa_supplicant/eapol_test.c index 03b8c7e4a..c1349c947 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)