From: Miroslav Lichvar Date: Fri, 29 Jan 2016 14:35:32 +0000 (+0100) Subject: cmdmon: allow unhandled commands X-Git-Tag: 2.3-pre1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e4dd9302df5e6d576a18e22bd86167d0296a7d2;p=thirdparty%2Fchrony.git cmdmon: allow unhandled commands Replace the assert() with a debug message to not crash if someone forgets to implement a newly defined command. --- diff --git a/cmdmon.c b/cmdmon.c index 61b2e893..b95b8b98 100644 --- a/cmdmon.c +++ b/cmdmon.c @@ -1565,7 +1565,8 @@ read_from_cmd_socket(void *anything) break; default: - assert(0); + DEBUG_LOG(LOGF_CmdMon, "Unhandled command %d", rx_command); + tx_message.status = htons(STT_FAILED); break; } } else {