aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common.h b/common.h
index bd273be..e55ca46 100644
--- a/common.h
+++ b/common.h
@@ -151,6 +151,10 @@ run_tests(const char *name, enum libhashsum_algorithm algorithm, size_t hash_siz
fprintf(stderr, "libhashsum_init_hasher returned NULL pointer in .finalise\n");
return 2;
}
+ if (hasher.stretch) {
+ fprintf(stderr, "libhashsum_init_hasher returned non-NULL pointer in .stretch\n");
+ return 2;
+ }
input_string_len = strlen(testcases[i].input);
bits = testcases[i].extra_bits;
if (bits) {