From de5f21bd599fc9d67192f4a6a0cc03d0f6c9b314 Mon Sep 17 00:00:00 2001 From: delphij Date: Tue, 6 May 2014 21:34:01 +0000 Subject: [PATCH] Don't reply monlist request when it's not enabled. No objection from: roberto (but all bugs are mine) MFC after: 2 weeks --- contrib/ntp/ntpd/ntp_request.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/contrib/ntp/ntpd/ntp_request.c b/contrib/ntp/ntpd/ntp_request.c index f5eed4449d9a..6d479566d123 100644 --- a/contrib/ntp/ntpd/ntp_request.c +++ b/contrib/ntp/ntpd/ntp_request.c @@ -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,