aboutsummaryrefslogtreecommitdiffstats
path: root/argon2
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--argon2/hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/argon2/hash.c b/argon2/hash.c
index 6ca665f..c63ba67 100644
--- a/argon2/hash.c
+++ b/argon2/hash.c
@@ -224,14 +224,14 @@ check(const char *phrase, const char *settings, const char *hash, size_t hashlen
EXPECT(librecrypt__argon2__hash(COMMON, S(ALGO"m=0,t=999999999999999999,p=0$AAAABBBB$*0"), NULL) == -1);\
EXPECT(errno == EINVAL);\
\
- CHECK_MEGAPASSPHRASE(ALGO);\
- \
/* target `if (!salt_encoded)` */\
EXPECT_ABORT(discarded_int = librecrypt__argon2__hash(COMMON, S(ALGO"m=1024,t=10,p=1$*10$"), NULL));\
\
if (!libtest_have_custom_malloc())\
break;\
\
+ CHECK_MEGAPASSPHRASE(ALGO);\
+ \
/* target `salt = malloc((size_t)r);` */\
libtest_set_alloc_failure_in(1u);\
errno = 0;\