]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Deal with NULL src when calling record_raw_stats()
authorHarlan Stenn <stenn@ntp.org>
Mon, 11 Dec 2017 11:55:35 +0000 (11:55 +0000)
committerHarlan Stenn <stenn@ntp.org>
Mon, 11 Dec 2017 11:55:35 +0000 (11:55 +0000)
bk: 5a2e7237JHixQBMKbUlaFQjV77QzKA

ntpd/ntp_io.c

index 022d1ddf848da71753ca45e98d6f2ce1b2871439..fab8d4f44ef60cd6f52fc7f123da84127f12269e 100644 (file)
@@ -3177,7 +3177,7 @@ sendpkt(
        } while (ismcast && src != NULL);
 
        /* HMS: pkt->rootdisp is usually random here */
-       record_raw_stats(&src->sin, dest,
+       record_raw_stats(src ? &src->sin : NULL, dest,
                        &pkt->org, &pkt->rec, &pkt->xmt, &fp_zero,
                        PKT_MODE(pkt->li_vn_mode),
                        PKT_VERSION(pkt->li_vn_mode),