summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rwxr-xr-xutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index ebe2b3729..49fdf5db5 100755
--- a/utils.c
+++ b/utils.c
@@ -111,7 +111,7 @@ int gethostbyname_r (const char *name, struct hostent *ret, char *buf,
h_errno = hsave; /* restore h_errno */
ast_mutex_unlock(&__mutex); /* end critical area */
- return (*result != NULL);
+ return (*result == NULL); /* return 0 on success, non-zero on error */
}