Fix logic in gethostbyname_r (bug #1634)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2966 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-05-15 05:02:42 +00:00
parent 28c55ae8e3
commit f59f077d27

View File

@@ -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 */
}