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:
parent
f96c1d76fd
commit
42ad72029f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue