diff options
author | Denys Vlasenko | 2011-07-08 08:34:28 +0200 |
---|---|---|
committer | Denys Vlasenko | 2011-07-08 08:34:28 +0200 |
commit | 8f6ce094dc780010e51e38bf96b9d107cefdd4b6 (patch) | |
tree | 9ed961ac07cbd230d12bd3f4f25f257736f1477c /libbb/inet_common.c | |
parent | 126f2b2853502a7e74e73c11b86a25510a76b9c0 (diff) | |
download | busybox-8f6ce094dc780010e51e38bf96b9d107cefdd4b6.zip busybox-8f6ce094dc780010e51e38bf96b9d107cefdd4b6.tar.gz |
a few tweaks for bionic
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/inet_common.c')
-rw-r--r-- | libbb/inet_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/inet_common.c b/libbb/inet_common.c index 207720e..7208db9 100644 --- a/libbb/inet_common.c +++ b/libbb/inet_common.c @@ -175,7 +175,8 @@ int FAST_FUNC INET6_resolve(const char *name, struct sockaddr_in6 *sin6) return -1; } memcpy(sin6, ai->ai_addr, sizeof(*sin6)); - freeaddrinfo(ai); + if (ai) + freeaddrinfo(ai); return 0; } |