Don't reply monlist request when it's not enabled.

No objection from:	roberto (but all bugs are mine)
MFC after:	2 weeks
This commit is contained in:
Xin LI 2014-05-06 21:34:01 +00:00
parent 28ab4bb8f7
commit c4bf0d04c2

View File

@ -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,