summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openvpn/src/openvpn/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openvpn/src/openvpn/socket.c b/openvpn/src/openvpn/socket.c
index f99669aa..e88148a0 100644
--- a/openvpn/src/openvpn/socket.c
+++ b/openvpn/src/openvpn/socket.c
@@ -242,7 +242,7 @@ do_preresolve(struct context *c)
if (! ce->http_proxy_options)
{
status = do_preresolve_host (c, remote, ce->remote_port, ce->af, flags);
- if (!status)
+ if (status != 0)
goto err;
}