# HG changeset patch # User Jarvis Tseng # Date 1597934992 -3600 # Node ID 8481736214762f073be74dfec64b81910ab68d0d # Parent a3d0519e2e9d0e6bb109688d6ae7d89ef7d85699 auth: Fix consttime_memequal test diff -r a3d0519e2e9d -r 848173621476 auth.c --- a/auth.c Sat May 04 10:12:53 2019 +0100 +++ b/auth.c Thu Aug 20 15:49:52 2020 +0100 @@ -336,7 +336,7 @@ } free(mm); - if (consttime_memequal(d, &hmac, dlen)) { + if (!consttime_memequal(d, &hmac, dlen)) { errno = EPERM; return NULL; }