diff options
Diffstat (limited to 'gweb/gweb.c')
-rwxr-xr-x | gweb/gweb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gweb/gweb.c b/gweb/gweb.c index 7037cd94..69aea5b7 100755 --- a/gweb/gweb.c +++ b/gweb/gweb.c @@ -1288,7 +1288,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; } |