From d1fd4866d8be89ba5b06ea3a2ffd207ea6b2ddc7 Mon Sep 17 00:00:00 2001 From: Harlan Stenn Date: Mon, 11 Dec 2017 11:55:35 +0000 Subject: [PATCH] Deal with NULL src when calling record_raw_stats() bk: 5a2e7237JHixQBMKbUlaFQjV77QzKA --- ntpd/ntp_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- 2.47.3