]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
auth: Fix consttime_memequal test dhcpcd-6 origin/dhcpcd-6
authorJarvis Tseng <jarvistseng6@gmail.com>
Thu, 20 Aug 2020 14:49:52 +0000 (15:49 +0100)
committerRoy Marples <roy@marples.name>
Thu, 20 Aug 2020 14:49:52 +0000 (15:49 +0100)
auth.c

diff --git a/auth.c b/auth.c
index accba8051d6a4fca7888a3dc58a92e47ab982df4..06388d8fd941c15c2d97cc8175181cbff42b9c74 100644 (file)
--- 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;
        }