svn commit: r266459 - stable/8/contrib/ntp/ntpd
Xin LI
delphij at FreeBSD.org
Tue May 20 00:57:54 UTC 2014
Author: delphij
Date: Tue May 20 00:57:53 2014
New Revision: 266459
URL: http://svnweb.freebsd.org/changeset/base/266459
Log:
MFC r265465:
Don't reply monlist request when it's not enabled.
Modified:
stable/8/contrib/ntp/ntpd/ntp_request.c
Directory Properties:
stable/8/contrib/ntp/ (props changed)
Modified: stable/8/contrib/ntp/ntpd/ntp_request.c
==============================================================================
--- stable/8/contrib/ntp/ntpd/ntp_request.c Tue May 20 00:57:28 2014 (r266458)
+++ stable/8/contrib/ntp/ntpd/ntp_request.c Tue May 20 00:57:53 2014 (r266459)
@@ -1902,7 +1902,6 @@ mon_getlist_0(
printf("wants monitor 0 list\n");
#endif
if (!mon_enabled) {
- req_ack(srcadr, inter, inpkt, INFO_ERR_NODATA);
return;
}
im = (struct info_monitor *)prepare_pkt(srcadr, inter, inpkt,
@@ -1947,7 +1946,6 @@ mon_getlist_1(
extern int mon_enabled;
if (!mon_enabled) {
- req_ack(srcadr, inter, inpkt, INFO_ERR_NODATA);
return;
}
im = (struct info_monitor_1 *)prepare_pkt(srcadr, inter, inpkt,
More information about the svn-src-stable
mailing list