aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--socket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/socket.c b/socket.c
index 70d8ffd..e9cc1ae 100644
--- a/socket.c
+++ b/socket.c
@@ -863,6 +863,8 @@ socket_connect (socket_descriptor_t *sd,
connect_retry_seconds,
strerror_ts (status, &gc));
+ gc_reset (&gc);
+
openvpn_close_socket (*sd);
*sd = SOCKET_UNDEFINED;