diff options
author | delphij <delphij@FreeBSD.org> | 2014-12-22 19:07:16 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-12-22 19:07:16 +0000 |
commit | 77f68eb34a5227ee871dceac46abbd1db966388b (patch) | |
tree | d6d4485aa1ef497ee3283b4612cd1f9319518b28 /contrib/ntp/ntpd/ntp_config.c | |
parent | 2b345a08edde7a77b1eccf22395f90aec2d3adac (diff) | |
download | FreeBSD-src-77f68eb34a5227ee871dceac46abbd1db966388b.zip FreeBSD-src-77f68eb34a5227ee871dceac46abbd1db966388b.tar.gz |
MFC r276071:
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
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 a28bd1b..e038f20 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; |