ntp: fix NULL pointer
This commit is contained in:
parent
82ddc6a883
commit
b585954b21
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue