From 6b76b84db36a8cf9a2a610d287538b334f0b1111 Mon Sep 17 00:00:00 2001 From: markus Date: Wed, 31 Jan 2001 20:37:22 +0000 Subject: do not disconnect if local port forwarding fails, e.g. if port is already in use --- usr.bin/ssh/serverloop.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.bin/ssh/serverloop.c') diff --git a/usr.bin/ssh/serverloop.c b/usr.bin/ssh/serverloop.c index 66a9b2bc3d9..db994316f50 100644 --- a/usr.bin/ssh/serverloop.c +++ b/usr.bin/ssh/serverloop.c @@ -35,7 +35,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: serverloop.c,v 1.43 2001/01/29 16:55:37 markus Exp $"); +RCSID("$OpenBSD: serverloop.c,v 1.44 2001/01/31 20:37:23 markus Exp $"); #include "xmalloc.h" #include "packet.h" @@ -862,12 +862,11 @@ server_input_global_request(int type, int plen, void *ctxt) packet_send_debug("Server has disabled port forwarding."); } else { /* Start listening on the port */ - channel_request_forwarding( + success = channel_request_forwarding( listen_address, listen_port, /*unspec host_to_connect*/ "", /*unspec port_to_connect*/ 0, options.gateway_ports, /*remote*/ 1); - success = 1; } xfree(listen_address); } -- cgit v1.2.3-59-g8ed1b