aboutsummaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-01-21 03:26:45 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-01-21 03:26:45 +0000
commitb19bdf671c9369798978e5ecfb5c0e36f93cf821 (patch)
tree92f4206cdfb55e3e2b9ba6840028fe60cb049006 /socket.c
parentAdded note about alternative version of easy-rsa (diff)
downloadopenvpn-b19bdf671c9369798978e5ecfb5c0e36f93cf821.tar.xz
Fixed interim memory growth issue in TCP connect loop where
"TCP: connect to %s failed, will try again in %d seconds: %s" is output. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2633 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'socket.c')
-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;