Browse Source

Fix memcmp use in a test program

Signed-hostap: Jouni Malinen <j@w1.fi>
Jouni Malinen 12 years ago
parent
commit
78372bda68
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wpa_supplicant/tests/test_eap_sim_common.c

+ 1 - 1
wpa_supplicant/tests/test_eap_sim_common.c

@@ -28,7 +28,7 @@ static int test_eap_sim_prf(void)
 
 	printf("Testing EAP-SIM PRF (FIPS 186-2 + change notice 1)\n");
 	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");
 		return 1;
 	}