diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2001-09-04 09:18:32 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2001-09-04 09:18:32 +0000 |
commit | aa542e1ed0ca06fad68b3334df053d9022463b80 (patch) | |
tree | 0ece3f52d700569aa496453bf866a4e4d5fd982d /mutt_tunnel.c | |
parent | 76ecc91c1784c88a1147d88a5e2f370e06042c0f (diff) |
patch-bac.tunnelreopen-1 from Brendan Cully.
Diffstat (limited to 'mutt_tunnel.c')
-rw-r--r-- | mutt_tunnel.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mutt_tunnel.c b/mutt_tunnel.c index 12aadce3..01e1d729 100644 --- a/mutt_tunnel.c +++ b/mutt_tunnel.c @@ -45,10 +45,6 @@ static int tunnel_socket_write (CONNECTION* conn, const char* buf, size_t len); /* -- public functions -- */ int mutt_tunnel_socket_setup (CONNECTION *conn) { - TUNNEL_DATA* tunnel = (TUNNEL_DATA*) safe_malloc (sizeof (TUNNEL_DATA)); - - conn->sockdata = tunnel; - conn->open = tunnel_socket_open; conn->close = tunnel_socket_close; conn->read = tunnel_socket_read; @@ -59,11 +55,14 @@ int mutt_tunnel_socket_setup (CONNECTION *conn) static int tunnel_socket_open (CONNECTION *conn) { - TUNNEL_DATA* tunnel = (TUNNEL_DATA*) conn->sockdata; + TUNNEL_DATA* tunnel; int pid; int rc; int pin[2], pout[2]; + tunnel = (TUNNEL_DATA*) safe_malloc (sizeof (TUNNEL_DATA)); + conn->sockdata = tunnel; + mutt_message (_("Connecting with \"%s\"..."), Tunnel); if ((rc = pipe (pin)) == -1) |