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>
This commit is contained in:
Jouni Malinen 2013-01-12 12:32:43 +02:00
parent f96c1d76fd
commit 42ad72029f

View file

@ -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)