]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fixed interim memory growth issue in TCP connect loop where
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Mon, 21 Jan 2008 03:26:45 +0000 (03:26 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Mon, 21 Jan 2008 03:26:45 +0000 (03:26 +0000)
"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

socket.c

index 70d8ffd87d835d24371ca09b5a14262449dd7307..e9cc1aedbc06cc9f08ee015c34779c79c4e6b6ab 100644 (file)
--- 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;