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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9d546fd7e290b0b9d83cf97eca5c299e4937655;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 d9b020fb1d..ad1b9a6d0c 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;