summaryrefslogtreecommitdiffstats
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
parenteba4632dc1c13ce85d519a722c08181ec77ff09c (diff)
downloadopenvpn-b19bdf671c9369798978e5ecfb5c0e36f93cf821.tar.gz
openvpn-b19bdf671c9369798978e5ecfb5c0e36f93cf821.tar.xz
openvpn-b19bdf671c9369798978e5ecfb5c0e36f93cf821.zip
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
-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;