From 76715a01b41e162fbf909555865e4f3700419e7c Mon Sep 17 00:00:00 2001 From: Jarvis Tseng Date: Thu, 20 Aug 2020 15:49:52 +0100 Subject: [PATCH] auth: Fix consttime_memequal test --- auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.c b/auth.c index accba805..06388d8f 100644 --- a/auth.c +++ b/auth.c @@ -336,7 +336,7 @@ gottoken: } free(mm); - if (consttime_memequal(d, &hmac, dlen)) { + if (!consttime_memequal(d, &hmac, dlen)) { errno = EPERM; return NULL; } -- 2.47.2