mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 01:35:06 -05:00
ntp: fix NULL pointer
This commit is contained in:
@@ -996,7 +996,7 @@ NSR_GetName(IPAddr *address)
|
|||||||
int slot;
|
int slot;
|
||||||
|
|
||||||
if (!find_slot(address, &slot))
|
if (!find_slot(address, &slot))
|
||||||
return 0;
|
return NULL;
|
||||||
|
|
||||||
record = get_record(slot);
|
record = get_record(slot);
|
||||||
if (record->name)
|
if (record->name)
|
||||||
|
|||||||
Reference in New Issue
Block a user