]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Remove superfluous code in read_from_cmd_socket()
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 24 Jan 2014 15:37:26 +0000 (16:37 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 24 Jan 2014 15:53:32 +0000 (16:53 +0100)
cmdmon.c

index fe63cbd28a6b5cfb791734b029aeb4f6293302a6..8ec85f3f4bbc97d9d74525409c9f5cc19dab7edb 100644 (file)
--- a/cmdmon.c
+++ b/cmdmon.c
@@ -1749,7 +1749,6 @@ read_from_cmd_socket(void *anything)
   memset(&tx_message.auth, 0, sizeof(tx_message.auth));
 
   if (rx_message.version != PROTO_VERSION_NUMBER) {
-    tx_message.status = htons(STT_NOHOSTACCESS);
     if (!LOG_RateLimited()) {
       LOG(LOGS_WARN, LOGF_CmdMon, "Read command packet with protocol version %d (expected %d) from %s:%hu", rx_message.version, PROTO_VERSION_NUMBER, UTI_IPToString(&remote_ip), remote_port);
     }