--- gvpe/src/vpn_tcp.C 2007/11/10 05:14:23 1.17 +++ gvpe/src/vpn_tcp.C 2007/11/10 19:43:37 1.18 @@ -1,6 +1,6 @@ /* vpn_tcp.C -- handle the tcp part of the protocol. - Copyright (C) 2003-2005 Marc Lehmann + Copyright (C) 2003-2007 Marc Lehmann This file is part of GVPE. @@ -434,6 +434,8 @@ void tcp_connection::error () { + stop (); + if (fd >= 0) { close (fd); @@ -446,7 +448,6 @@ free (proxy_req); proxy_req = 0; #endif - stop (); state = active ? IDLE : ERROR; }