projects
/
platform
/
upstream
/
connman.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 1.38
[platform/upstream/connman.git]
/
gweb
/
gweb.c
diff --git
a/gweb/gweb.c
b/gweb/gweb.c
index
393afe0
..
12fcb1d
100644
(file)
--- a/
gweb/gweb.c
+++ b/
gweb/gweb.c
@@
-1274,7
+1274,8
@@
static bool is_ip_address(const char *host)
addr = NULL;
result = getaddrinfo(host, NULL, &hints, &addr);
- freeaddrinfo(addr);
+ if(!result)
+ freeaddrinfo(addr);
return result == 0;
}