From: Miroslav Lichvar Date: Tue, 9 Jun 2015 15:05:15 +0000 (+0200) Subject: cmdmon: reply with STT_INVALID on invalid option in handle_manual() X-Git-Tag: 2.1-pre1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64f83c8861b25e9cf7cac826027ec9ce75f57de4;p=thirdparty%2Fchrony.git cmdmon: reply with STT_INVALID on invalid option in handle_manual() --- diff --git a/cmdmon.c b/cmdmon.c index 82e6f4ae..511dbe22 100644 --- a/cmdmon.c +++ b/cmdmon.c @@ -925,6 +925,9 @@ handle_manual(CMD_Request *rx_message, CMD_Reply *tx_message) case 2: MNL_Reset(); break; + default: + tx_message->status = htons(STT_INVALID); + break; } }