From b585954b2187eaabba2e3a09a144d27bdbfa9109 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 14 Jan 2021 17:31:40 +0100 Subject: [PATCH] ntp: fix NULL pointer --- ntp_sources.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntp_sources.c b/ntp_sources.c index 850f471..c32c822 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)