summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inet.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/inet.c b/src/inet.c
index 17d58d5c..7208d4eb 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;