ntp: fix NULL pointer

This commit is contained in:
Miroslav Lichvar 2021-01-14 17:31:40 +01:00
parent 82ddc6a883
commit b585954b21

View 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)