[Git][NTPsec/ntpsec][master] ntp_dns: Check for NULL pointers.
Gary E. Miller
gitlab at mg.gitlab.com
Tue Mar 26 21:03:47 UTC 2019
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
94ca6fa4 by Gary E. Miller at 2019-03-26T21:03:18Z
ntp_dns: Check for NULL pointers.
Fixed a real bug.
- - - - -
1 changed file:
- ntpd/ntp_dns.c
Changes:
=====================================
ntpd/ntp_dns.c
=====================================
@@ -58,6 +58,10 @@ bool dns_probe(struct peer* pp)
if (NULL != active)
return false;
+ if (NULL == pp ||
+ NULL == pp->hostname)
+ return false;
+
if (NULL != active)
busy = ", busy";
msyslog(LOG_INFO, "DNS: dns_probe: %s, cast_flags:%x, flags:%x%s",
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/94ca6fa40842250e8448e35551dba46c403d3d7c
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/94ca6fa40842250e8448e35551dba46c403d3d7c
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20190326/cb12dbd9/attachment.html>
More information about the vc
mailing list