Fix memcmp use in a test program
authorJouni Malinen <j@w1.fi>
Mon, 13 Aug 2012 16:57:57 +0000 (19:57 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 13 Aug 2012 16:57:57 +0000 (19:57 +0300)
Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/tests/test_eap_sim_common.c

index 4448858..f60b182 100644 (file)
@@ -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;
        }