Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriy Pylypenko committed Mar 11, 2021
1 parent 393d73e commit 9d3dc3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resolve.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ struct hostent * own_gethostbyaddr(void *addr, socklen_t len, int af)

query:
cached_he = gethostbyaddr(addr, len, af);
if (cached_he < 0) {
if (cached_he == NULL) {
LM_DBG("ptr not found\n");
if (dnscache_put_func(addr,T_PTR,NULL,len,1,0) < 0)
LM_ERR("Failed to store PTR in cache\n");
Expand Down

0 comments on commit 9d3dc3c

Please sign in to comment.