]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: fix NULL pointer
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 14 Jan 2021 16:31:40 +0000 (17:31 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 14 Jan 2021 17:17:48 +0000 (18:17 +0100)
ntp_sources.c

index 850f47182d2bc9287d4e82c39c354af72908cfbf..c32c82260f248486681788537479278cc31b04e2 100644 (file)
@@ -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)