diff options
author | Mike Frysinger | 2006-05-26 01:56:42 +0000 |
---|---|---|
committer | Mike Frysinger | 2006-05-26 01:56:42 +0000 |
commit | 4f93a634673c25b052f9908fe5c43a6235680652 (patch) | |
tree | 5f87cec5b1f7b60f8308c1669ef6fae8d5bbd022 | |
parent | fa6c4844b2fef07def6b739c8f28ec50c2612208 (diff) | |
download | busybox-4f93a634673c25b052f9908fe5c43a6235680652.zip busybox-4f93a634673c25b052f9908fe5c43a6235680652.tar.gz |
errno and h_errno values are not the same #876 by rfelker
-rw-r--r-- | libbb/inet_common.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libbb/inet_common.c b/libbb/inet_common.c index ca0ef70..c02c732 100644 --- a/libbb/inet_common.c +++ b/libbb/inet_common.c @@ -62,7 +62,6 @@ int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst) } if (hostfirst) { /* Don't try again */ - errno = h_errno; return -1; } #ifdef DEBUG @@ -74,7 +73,6 @@ int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst) bb_error_msg("gethostbyname (%s)", name); #endif if ((hp = gethostbyname(name)) == (struct hostent *) NULL) { - errno = h_errno; return -1; } memcpy((char *) &s_in->sin_addr, (char *) hp->h_addr_list[0], |