From: Jarvis Tseng Date: Thu, 20 Aug 2020 14:49:52 +0000 (+0100) Subject: auth: Fix consttime_memequal test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fdhcpcd-6;p=thirdparty%2Fdhcpcd.git auth: Fix consttime_memequal test --- 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; }