diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2000-01-24 20:37:30 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2000-01-24 20:37:30 +0000 |
commit | 823677f349ef20569a16eee0ed7ddb0d58ac4dc7 (patch) | |
tree | 2d631187b5e35319534de1030137c17fe1720fc0 /usr.bin/ssh | |
parent | fb17f39fbc339e2d5e2a7aca0cd200695d2512cb (diff) |
do not connect() if request has been denied.
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/channels.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c index 3f32ea9a5cd..b40e965d8a2 100644 --- a/usr.bin/ssh/channels.c +++ b/usr.bin/ssh/channels.c @@ -16,7 +16,7 @@ */ #include "includes.h" -RCSID("$Id: channels.c,v 1.37 2000/01/10 10:12:52 markus Exp $"); +RCSID("$Id: channels.c,v 1.38 2000/01/24 20:37:29 markus Exp $"); #include "ssh.h" #include "packet.h" @@ -1077,9 +1077,7 @@ channel_input_port_open(int payload_len) /* The port is not permitted. */ log("Received request to connect to %.100s:%d, but the request was denied.", host, host_port); - packet_start(SSH_MSG_CHANNEL_OPEN_FAILURE); - packet_put_int(remote_channel); - packet_send(); + goto fail; } } |