aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/ntp/ntpd/ntp_config.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2014-12-23 22:53:03 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2014-12-23 22:53:03 +0000
commiteec2228f5545242471ebda48e26e79eb85156ee5 (patch)
tree2a94c6b6551f656a353dd6ab147668e43ecde45c /contrib/ntp/ntpd/ntp_config.c
parente9e69dbafd7921c68a66e87702c0583a2be20823 (diff)
downloadsrc-eec2228f5545242471ebda48e26e79eb85156ee5.tar.gz
src-eec2228f5545242471ebda48e26e79eb85156ee5.zip
[SA-14:31] Fix multiple vulnerabilities in NTP suite.releng/9.1
[EN-14:13] Fix directory deletion issue in freebsd-update. Approved by: so
Notes
Notes: svn path=/releng/9.1/; revision=276155
Diffstat (limited to 'contrib/ntp/ntpd/ntp_config.c')
-rw-r--r--contrib/ntp/ntpd/ntp_config.c2
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;