summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
authordtucker <dtucker>2006-07-12 12:17:10 +0000
committerdtucker <dtucker>2006-07-12 12:17:10 +0000
commit4c5ea93fa96f80cb39461c81dbb0364965a6d2be (patch)
tree2449fb8ebbce5f1bd0afdd3303414e71b0f4c95b /clientloop.c
parentbbdb308c2827decba5a3a1ea375b07d1a533a437 (diff)
downloadopenssh-4c5ea93fa96f80cb39461c81dbb0364965a6d2be.tar.gz
- markus@cvs.openbsd.org 2006/07/11 18:50:48
[clientloop.c ssh.1 ssh.c channels.c ssh_config.5 readconf.h session.c channels.h readconf.c] add ExitOnForwardFailure: terminate the connection if ssh(1) cannot set up all requested dynamic, local, and remote port forwardings. ok djm, dtucker, stevesk, jmc
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/clientloop.c b/clientloop.c
index c59d573c..6cb2a7ac 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clientloop.c,v 1.166 2006/07/08 21:47:12 stevesk Exp $ */
+/* $OpenBSD: clientloop.c,v 1.167 2006/07/11 18:50:47 markus Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -996,9 +996,12 @@ process_cmdline(void)
goto out;
}
} else {
- channel_request_remote_forwarding(fwd.listen_host,
+ if (channel_request_remote_forwarding(fwd.listen_host,
fwd.listen_port, fwd.connect_host,
- fwd.connect_port);
+ fwd.connect_port) < 0) {
+ logit("Port forwarding failed.");
+ goto out;
+ }
}
logit("Forwarding port.");