Merge "[Upstream] Fix return value in error path." into tizen
authorJaehyun Kim <jeik01.kim@samsung.com>
Tue, 18 Dec 2018 02:25:30 +0000 (02:25 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Tue, 18 Dec 2018 02:25:30 +0000 (02:25 +0000)
src/inet.c

index 25e5372..d54760d 100644 (file)
@@ -1108,7 +1108,7 @@ bool connman_inet_compare_subnet(int index, const char *host)
                return false;
 
        if (inet_aton(host, &_host_addr) == 0)
-               return -1;
+               return false;
        host_addr = _host_addr.s_addr;
 
        sk = socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0);