svn commit: r266458 - stable/9/contrib/ntp/ntpd
Xin LI
delphij at FreeBSD.org
Tue May 20 00:57:29 UTC 2014
Author: delphij
Date: Tue May 20 00:57:28 2014
New Revision: 266458
URL: http://svnweb.freebsd.org/changeset/base/266458
Log:
MFC r265465:
Don't reply monlist request when it's not enabled.
Modified:
stable/9/contrib/ntp/ntpd/ntp_request.c
Directory Properties:
stable/9/contrib/ntp/ (props changed)
Modified: stable/9/contrib/ntp/ntpd/ntp_request.c
==============================================================================
--- stable/9/contrib/ntp/ntpd/ntp_request.c Tue May 20 00:57:00 2014 (r266457)
+++ stable/9/contrib/ntp/ntpd/ntp_request.c Tue May 20 00:57:28 2014 (r266458)
@@ -1920,7 +1920,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,
@@ -1965,7 +1964,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-9
mailing list