diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-29 16:39:28 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-29 16:39:28 +0100 |
commit | 1a7256ac38284caffd2a0de2250364369059be69 (patch) | |
tree | 0e97ac73f8709563c82424b96c5f9d8fceacd902 /libbb | |
parent | 72745632a13ccd12232127b31e1656f2f7ebcaff (diff) | |
download | busybox-w32-1a7256ac38284caffd2a0de2250364369059be69.tar.gz busybox-w32-1a7256ac38284caffd2a0de2250364369059be69.tar.bz2 busybox-w32-1a7256ac38284caffd2a0de2250364369059be69.zip |
chpst: fix a bug where -U USER was using wrong USER (one from -u USER)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/inet_common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libbb/inet_common.c b/libbb/inet_common.c index 0f4fca1a2..b3e0802ee 100644 --- a/libbb/inet_common.c +++ b/libbb/inet_common.c | |||
@@ -175,8 +175,7 @@ int FAST_FUNC INET6_resolve(const char *name, struct sockaddr_in6 *sin6) | |||
175 | return -1; | 175 | return -1; |
176 | } | 176 | } |
177 | memcpy(sin6, ai->ai_addr, sizeof(*sin6)); | 177 | memcpy(sin6, ai->ai_addr, sizeof(*sin6)); |
178 | if (ai) | 178 | freeaddrinfo(ai); |
179 | freeaddrinfo(ai); | ||
180 | return 0; | 179 | return 0; |
181 | } | 180 | } |
182 | 181 | ||