summaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2012-06-28 08:24:53 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-06-28 09:40:10 (GMT)
commitc189a9ab8a085447b775c7fbeb0a8050751b7f84 (patch)
treede8c484606b036d9d808577b6c4a6113d1adf2be /src/inet.c
parentaf22afbaf54aaadb85d6df5d60c5b43f37ea5fc0 (diff)
downloadconnman-c189a9ab8a085447b775c7fbeb0a8050751b7f84.zip
connman-c189a9ab8a085447b775c7fbeb0a8050751b7f84.tar.gz
connman-c189a9ab8a085447b775c7fbeb0a8050751b7f84.tar.bz2
inet: Fix usage of getaddrinfo() return value
Fixes BMC#25304
Diffstat (limited to 'src/inet.c')
-rw-r--r--src/inet.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/inet.c b/src/inet.c
index 17d58d5..7208d4e 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -2187,8 +2187,6 @@ int connman_inet_check_ipaddress(const char *host)
result = getaddrinfo(host, NULL, &hints, &addr);
if (result == 0)
result = addr->ai_family;
- else
- result = -result;
freeaddrinfo(addr);
return result;