summaryrefslogtreecommitdiffstats
path: root/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth.c')
-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;
}