changeset 5423:848173621476 draft dhcpcd-6

auth: Fix consttime_memequal test
author Jarvis Tseng <jarvistseng6@gmail.com>
date Thu, 20 Aug 2020 15:49:52 +0100
parents a3d0519e2e9d
children
files auth.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}