diff options
author | delphij <delphij@FreeBSD.org> | 2017-03-28 04:48:17 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2017-03-28 04:48:17 +0000 |
commit | 9e55018b05bf06a66cff34b38d0513f3e6ce1693 (patch) | |
tree | 902f92e264fe4e9744915013573ddc0d77146551 /contrib/ntp/ntpd/ntp_loopfilter.c | |
parent | d39342cfdc6bedaba7e1c71da4f06feb63517476 (diff) | |
download | FreeBSD-src-9e55018b05bf06a66cff34b38d0513f3e6ce1693.zip FreeBSD-src-9e55018b05bf06a66cff34b38d0513f3e6ce1693.tar.gz |
MFC r315871: MFV r315791: ntp 4.2.8p10.
Diffstat (limited to 'contrib/ntp/ntpd/ntp_loopfilter.c')
-rw-r--r-- | contrib/ntp/ntpd/ntp_loopfilter.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/ntp/ntpd/ntp_loopfilter.c b/contrib/ntp/ntpd/ntp_loopfilter.c index c8320c4..8d44fb1 100644 --- a/contrib/ntp/ntpd/ntp_loopfilter.c +++ b/contrib/ntp/ntpd/ntp_loopfilter.c @@ -1307,8 +1307,7 @@ loop_config( if (freq < HUFFPUFF) freq = HUFFPUFF; sys_hufflen = (int)(freq / HUFFPUFF); - sys_huffpuff = emalloc(sizeof(sys_huffpuff[0]) * - sys_hufflen); + sys_huffpuff = eallocarray(sys_hufflen, sizeof(sys_huffpuff[0])); for (i = 0; i < sys_hufflen; i++) sys_huffpuff[i] = 1e9; sys_mindly = 1e9; |