projects
/
mech_eap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Updated to hostap_2_6
[mech_eap.git]
/
libeap
/
src
/
crypto
/
sha256-internal.c
diff --git
a/libeap/src/crypto/sha256-internal.c
b/libeap/src/crypto/sha256-internal.c
index
35299b0
..
86a548e
100644
(file)
--- a/
libeap/src/crypto/sha256-internal.c
+++ b/
libeap/src/crypto/sha256-internal.c
@@
-28,6
+28,9
@@
int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len,
struct sha256_state ctx;
size_t i;
+ if (TEST_FAIL())
+ return -1;
+
sha256_init(&ctx);
for (i = 0; i < num_elem; i++)
if (sha256_process(&ctx, addr[i], len[i]))