]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
cmdmon: reply with STT_INVALID on invalid option in handle_manual()
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 9 Jun 2015 15:05:15 +0000 (17:05 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 9 Jun 2015 15:05:45 +0000 (17:05 +0200)
cmdmon.c

index 82e6f4ae34c69c51591447d1f93c7acd2d752508..511dbe22e9ffdd70e33a16505de112504bcfc2c3 100644 (file)
--- 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;
   }
 }