aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-sha1.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-05 20:32:45 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-05 20:32:45 (GMT)
commit1767f7c11742769254067130058fb2a56be68147 (patch)
tree09fb05bb33df555af02d7f85183a68d0861c8590 /tests/test-sha1.c
parent36ee258db7ce8f02cd30187988941cc3f7587899 (diff)
downloadhostap-1767f7c11742769254067130058fb2a56be68147.zip
hostap-1767f7c11742769254067130058fb2a56be68147.tar.gz
hostap-1767f7c11742769254067130058fb2a56be68147.tar.bz2
Resolve compiler warnings in the test programs
Diffstat (limited to 'tests/test-sha1.c')
-rw-r--r--tests/test-sha1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-sha1.c b/tests/test-sha1.c
index a2343cf..792eca0 100644
--- a/tests/test-sha1.c
+++ b/tests/test-sha1.c
@@ -137,9 +137,9 @@ static int test_eap_fast(void)
}
printf("- PRF (TLS, SHA1/MD5) test case / key_block\n");
- tls_prf(master_secret, sizeof(master_secret), "key expansion",
- seed, sizeof(seed), buf, sizeof(key_block));
- if (memcmp(key_block, buf, sizeof(key_block)) != 0) {
+ if (tls_prf(master_secret, sizeof(master_secret), "key expansion",
+ seed, sizeof(seed), buf, sizeof(key_block)) ||
+ memcmp(key_block, buf, sizeof(key_block)) != 0) {
printf("PRF test - FAILED!\n");
errors++;
}