From 823677f349ef20569a16eee0ed7ddb0d58ac4dc7 Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Mon, 24 Jan 2000 20:37:30 +0000 Subject: do not connect() if request has been denied. --- usr.bin/ssh/channels.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'usr.bin/ssh') 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; } } -- cgit v1.2.3