aboutsummaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-15 05:02:42 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-15 05:02:42 +0000
commitf6bf7467fe26fd7fde129fe3995ec807894b24bc (patch)
tree16953b12113affb9e99a96373b26b8e551d70ead /utils.c
parent2e6ecb8e458c2fee965f27d8df2e196220272a02 (diff)
Fix logic in gethostbyname_r (bug #1634)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2966 f38db490-d61c-443f-a65b-d21fe96a405b
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 */
}