aboutsummaryrefslogtreecommitdiff
path: root/contrib/ntp/libntp/a_md5encrypt.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2016-04-27 07:46:38 +0000
committerXin LI <delphij@FreeBSD.org>2016-04-27 07:46:38 +0000
commit4990d495fcc77c51b3f46c91ba3a064b565afae0 (patch)
tree89c803d8ff6ef95cafc2a4cb08de66848195099a /contrib/ntp/libntp/a_md5encrypt.c
parent0fbe6eaef6fbb001b91bd8a57a9b3817c1b07b24 (diff)
parentc1950318d1af96666bb3a80bf73cb4790f6dbcea (diff)
MFV r298691:
ntp 4.2.8p7. Security: CVE-2016-1547, CVE-2016-1548, CVE-2016-1549, CVE-2016-1550 Security: CVE-2016-1551, CVE-2016-2516, CVE-2016-2517, CVE-2016-2518 Security: CVE-2016-2519 Security: FreeBSD-SA-16:16.ntp With hat: so
Notes
Notes: svn path=/head/; revision=298695
Diffstat (limited to 'contrib/ntp/libntp/a_md5encrypt.c')
-rw-r--r--contrib/ntp/libntp/a_md5encrypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/ntp/libntp/a_md5encrypt.c b/contrib/ntp/libntp/a_md5encrypt.c
index beaf6fd35b05..618ccd9de102 100644
--- a/contrib/ntp/libntp/a_md5encrypt.c
+++ b/contrib/ntp/libntp/a_md5encrypt.c
@@ -10,7 +10,7 @@
#include "ntp_stdlib.h"
#include "ntp.h"
#include "ntp_md5.h" /* provides OpenSSL digest API */
-
+#include "isc/string.h"
/*
* MD5authencrypt - generate message digest
*
@@ -92,7 +92,7 @@ MD5authdecrypt(
"MAC decrypt: MAC length error");
return (0);
}
- return !memcmp(digest, (const char *)pkt + length + 4, len);
+ return !isc_tsmemcmp(digest, (const char *)pkt + length + 4, len);
}
/*