From: Linux Karlsson Date: Tue, 10 Aug 2010 11:04:29 +0000 (+0200) Subject: Modified evaluation order to accept NULL as argument to spkt. X-Git-Tag: NTP_4_2_7P75~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba8af1f7e349dc534cf79af9bfe0f80f98662a07;p=thirdparty%2Fntp.git Modified evaluation order to accept NULL as argument to spkt. bk: 4c61323diGTxnAX9sNJiQsbWwc3SVQ --- diff --git a/sntp/networking.c b/sntp/networking.c index d9b020fb1..ad1b9a6d0 100644 --- a/sntp/networking.c +++ b/sntp/networking.c @@ -437,7 +437,7 @@ unusable: printf("spkt->xmt:\n"); l_fp_output(&spkt->xmt, stdout); #endif - if (!L_ISEQU(&rpkt->org, &spkt->xmt) && mode != MODE_BROADCAST) { + if (mode != MODE_BROADCAST && !L_ISEQU(&rpkt->org, &spkt->xmt)) { if (ENABLED_OPT(NORMALVERBOSE)) printf("sntp process_pkt: pkt.org and peer.xmt differ\n"); return PACKET_UNUSEABLE;