]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: fix Clang warning
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 15 Oct 2014 10:39:54 +0000 (12:39 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 15 Oct 2014 10:40:12 +0000 (12:40 +0200)
ntp_core.c

index f628b78b9a738bd9f359b55749af17b526a4e98c..031790e7dc0f4a074b01a2a3f3e74049a122ddea 100644 (file)
@@ -1567,7 +1567,7 @@ NCR_ProcessUnknown
   valid_auth = check_packet_auth(message, length, &has_auth, &key_id);
 
   /* If authentication failed, reply with crypto-NAK */
-  if (has_auth && !valid_auth)
+  if (!valid_auth)
     key_id = 0;
 
   /* Send a reply.