diff options
author | Xin LI <delphij@FreeBSD.org> | 2014-12-22 18:54:55 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2014-12-22 18:54:55 +0000 |
commit | 2f834a0b41079f9be4dc33ff877d50a5fba869d4 (patch) | |
tree | d83f5b192b71e160cccae05ef273d87719ba4919 /contrib/ntp/ntpd/ntp_config.c | |
parent | 6831cf6aa6cefe358fa59afb774e42f15d03fd10 (diff) | |
download | src-2f834a0b41079f9be4dc33ff877d50a5fba869d4.tar.gz src-2f834a0b41079f9be4dc33ff877d50a5fba869d4.zip |
Fix multiple ntp vulnerabilities.
Reviewed by: roberto (earlier revision), philip
Security: CVE-2014-9293, CVE-2014-9294
Security: CVE-2014-9295, CVE-2014-9296
Security: FreeBSD-SA-14:31.ntp
Differential Revision: https://reviews.freebsd.org/D1343
Notes
Notes:
svn path=/head/; revision=276071
Diffstat (limited to 'contrib/ntp/ntpd/ntp_config.c')
-rw-r--r-- | contrib/ntp/ntpd/ntp_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ntp/ntpd/ntp_config.c b/contrib/ntp/ntpd/ntp_config.c index a28bd1b417c4..e038f205790c 100644 --- a/contrib/ntp/ntpd/ntp_config.c +++ b/contrib/ntp/ntpd/ntp_config.c @@ -1887,7 +1887,7 @@ getconfig( for (i = 0; i < 8; i++) for (j = 1; j < 100; ++j) { - rankey[i] = (char) (ntp_random() & 0xff); + rankey[i] = (char) (arc4random() & 0xff); if (rankey[i] != 0) break; } rankey[8] = 0; |