summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2018-12-18 02:25:30 (GMT)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2018-12-18 02:25:30 (GMT)
commit47994e23cfadc1b7a64a90f1c1971f51fde47e44 (patch)
tree9436f8841fbd0f29bdc583420c1140cfa89cc3b8
parent48e25ec7f60ffcba067708732298fd85a2b3ed47 (diff)
parent23254e50b44663a69d3431ff3d1840e3f586e86b (diff)
downloadconnman-47994e23cfadc1b7a64a90f1c1971f51fde47e44.zip
connman-47994e23cfadc1b7a64a90f1c1971f51fde47e44.tar.gz
connman-47994e23cfadc1b7a64a90f1c1971f51fde47e44.tar.bz2
Merge "[Upstream] Fix return value in error path." into tizen
-rw-r--r--src/inet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inet.c b/src/inet.c
index 25e5372..d54760d 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -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);