From: Juergen Perlinger Date: Sat, 4 Apr 2020 06:57:51 +0000 (+0200) Subject: [Bug 3655] ntpdc memstats hash counts X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b7dacd0df38b6d82e270d2bcacceee37cfe9caa;p=thirdparty%2Fntp.git [Bug 3655] ntpdc memstats hash counts bk: 5e882fefpRHzn_HtbLtBftgmjR6I9w --- diff --git a/ChangeLog b/ChangeLog index 35d5d36c2..d109dca9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +--- +* [Bug 3655] ntpdc memstats hash counts + - fix by Gerry garvey + --- (4.2.8p14) 2020/03/03 Released by Harlan Stenn diff --git a/ntpd/ntp_request.c b/ntpd/ntp_request.c index bffdec5a9..e7997a3b9 100644 --- a/ntpd/ntp_request.c +++ b/ntpd/ntp_request.c @@ -1184,7 +1184,7 @@ mem_stats( for (i = 0; i < NTP_HASH_SIZE; i++) ms->hashcount[i] = (u_char) - max((u_int)peer_hash_count[i], UCHAR_MAX); + min((u_int)peer_hash_count[i], UCHAR_MAX); (void) more_pkt(); flush_pkt();