From: Miroslav Lichvar Date: Wed, 15 Oct 2014 10:39:54 +0000 (+0200) Subject: ntp: fix Clang warning X-Git-Tag: 2.0-pre1~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=819b8eb73d62abc72bc0f484cbe818df14f03da4;p=thirdparty%2Fchrony.git ntp: fix Clang warning --- diff --git a/ntp_core.c b/ntp_core.c index f628b78b..031790e7 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -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.