Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 May 2014 21:34:02 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r265465 - head/contrib/ntp/ntpd
Message-ID:  <201405062134.s46LY2pv046064@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Tue May  6 21:34:01 2014
New Revision: 265465
URL: http://svnweb.freebsd.org/changeset/base/265465

Log:
  Don't reply monlist request when it's not enabled.
  
  No objection from:	roberto (but all bugs are mine)
  MFC after:	2 weeks

Modified:
  head/contrib/ntp/ntpd/ntp_request.c

Modified: head/contrib/ntp/ntpd/ntp_request.c
==============================================================================
--- head/contrib/ntp/ntpd/ntp_request.c	Tue May  6 21:30:58 2014	(r265464)
+++ head/contrib/ntp/ntpd/ntp_request.c	Tue May  6 21:34:01 2014	(r265465)
@@ -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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405062134.s46LY2pv046064>