Skip to content

Commit 9d3dc3c

Browse files
author
Andriy Pylypenko
committed
Fix typo.
1 parent 393d73e commit 9d3dc3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resolve.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ struct hostent * own_gethostbyaddr(void *addr, socklen_t len, int af)
267267

268268
query:
269269
cached_he = gethostbyaddr(addr, len, af);
270-
if (cached_he < 0) {
270+
if (cached_he == NULL) {
271271
LM_DBG("ptr not found\n");
272272
if (dnscache_put_func(addr,T_PTR,NULL,len,1,0) < 0)
273273
LM_ERR("Failed to store PTR in cache\n");

0 commit comments

Comments
 (0)