Date: Tue, 20 May 2014 00:57:54 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r266459 - stable/8/contrib/ntp/ntpd Message-ID: <201405200057.s4K0vsnJ082772@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405200057.s4K0vsnJ082772>