Fix logic in gethostbyname_r (bug #1634)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2966 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 22 years ago
parent 28c55ae8e3
commit f59f077d27

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

Loading…
Cancel
Save