mirror of https://git.musl-libc.org/git/musl
Browse Source
commitmasterf081d5336afixed gethostbyname[2]_r to treat negative results as a non-error, leaving gethostbyname[2] wrongly returning a pointer to the unfilled result buffer rather than a null pointer. since, as documented with commitfe82bb9b92, the caller of gethostby{name[2],addr}_r can always rely on the result pointer being set, use that consistently rather than trying to duplicate logic about whether we have a result or not in gethostby{name[2],addr}.
2 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue