From: Harlan Stenn Date: Mon, 11 Dec 2017 11:55:35 +0000 (+0000) Subject: Deal with NULL src when calling record_raw_stats() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1fd4866d8be89ba5b06ea3a2ffd207ea6b2ddc7;p=thirdparty%2Fntp.git Deal with NULL src when calling record_raw_stats() bk: 5a2e7237JHixQBMKbUlaFQjV77QzKA --- diff --git a/ntpd/ntp_io.c b/ntpd/ntp_io.c index 022d1ddf8..fab8d4f44 100644 --- a/ntpd/ntp_io.c +++ b/ntpd/ntp_io.c @@ -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),