OSDN Git Service

We were failing to properly set h_errno on success, which could
authorEric Andersen <andersen@codepoet.org>
Sun, 19 Oct 2003 00:28:47 +0000 (00:28 -0000)
committerEric Andersen <andersen@codepoet.org>
Sun, 19 Oct 2003 00:28:47 +0000 (00:28 -0000)
commit2309700dd3739d8e5103257887c26835e135b5b5
treee3087e624ef786e6787b0fcd1db8ad2eb39bc12b
parentc5c91dc7df8e53b643395cdf0ca38a628a8d8173
We were failing to properly set h_errno on success, which could
cause gethostbyaddr_r to keep looping allocating more and more
memory each time till alloca finally caused a segfault.  Ugh.
This fixes that as well...
 -Erik
libc/inet/resolv.c