From 819b8eb73d62abc72bc0f484cbe818df14f03da4 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 15 Oct 2014 12:39:54 +0200 Subject: [PATCH] ntp: fix Clang warning --- ntp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntp_core.c b/ntp_core.c index f628b78..031790e 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.