Updated to hostap_2_6
[mech_eap.git] / libeap / src / crypto / sha256-internal.c
index 35299b0..86a548e 100644 (file)
@@ -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]))