mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
Fix memcmp use in a test program
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b4e9e2659b
commit
78372bda68
@ -28,7 +28,7 @@ static int test_eap_sim_prf(void)
|
|||||||
|
|
||||||
printf("Testing EAP-SIM PRF (FIPS 186-2 + change notice 1)\n");
|
printf("Testing EAP-SIM PRF (FIPS 186-2 + change notice 1)\n");
|
||||||
eap_sim_prf(xkey, buf, sizeof(buf));
|
eap_sim_prf(xkey, buf, sizeof(buf));
|
||||||
if (memcmp(w, buf, sizeof(w) != 0)) {
|
if (memcmp(w, buf, sizeof(w)) != 0) {
|
||||||
printf("eap_sim_prf failed\n");
|
printf("eap_sim_prf failed\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user