From: Miroslav Lichvar Date: Thu, 14 Jan 2021 16:31:40 +0000 (+0100) Subject: ntp: fix NULL pointer X-Git-Tag: 4.1-pre1~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b585954b2187eaabba2e3a09a144d27bdbfa9109;p=thirdparty%2Fchrony.git ntp: fix NULL pointer --- diff --git a/ntp_sources.c b/ntp_sources.c index 850f4718..c32c8226 100644 --- a/ntp_sources.c +++ b/ntp_sources.c @@ -996,7 +996,7 @@ NSR_GetName(IPAddr *address) int slot; if (!find_slot(address, &slot)) - return 0; + return NULL; record = get_record(slot); if (record->name)