summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarvis Tseng <jarvistseng6@gmail.com>2020-08-20 15:49:52 +0100
committerRoy Marples <roy@marples.name>2020-08-20 15:49:52 +0100
commit76715a01b41e162fbf909555865e4f3700419e7c (patch)
tree7d0f8dd8bab4c7b3c552519d90510540425bc786
parent32ecbd429a7b3911b6763cb4e4b06b0b40f84270 (diff)
downloaddhcpcd-6.tar.xz
auth: Fix consttime_memequal testdhcpcd-6
-rw-r--r--auth.c2
1 files changed, 1 insertions, 1 deletions
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;
}