summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-05-15 05:02:42 +0000
committerMark Spencer <markster@digium.com>2004-05-15 05:02:42 +0000
commitf59f077d2718ff319f81d8c9806932ec5ae900a2 (patch)
tree16953b12113affb9e99a96373b26b8e551d70ead /utils.c
parent28c55ae8e3a0865e074ba55f1c7f032e95188538 (diff)
Fix logic in gethostbyname_r (bug #1634)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2966 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 */
}