summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channels.c b/channels.c
index ea1d46c21..1937b0244 100644
--- a/channels.c
+++ b/channels.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: channels.c,v 1.186 2003/01/10 10:32:54 djm Exp $"); 42RCSID("$OpenBSD: channels.c,v 1.187 2003/03/05 22:33:43 markus Exp $");
43 43
44#include "ssh.h" 44#include "ssh.h"
45#include "ssh1.h" 45#include "ssh1.h"
@@ -1997,6 +1997,7 @@ channel_input_port_open(int type, u_int32_t seq, void *ctxt)
1997 c->remote_id = remote_id; 1997 c->remote_id = remote_id;
1998 } 1998 }
1999 if (c == NULL) { 1999 if (c == NULL) {
2000 xfree(originator_string);
2000 packet_start(SSH_MSG_CHANNEL_OPEN_FAILURE); 2001 packet_start(SSH_MSG_CHANNEL_OPEN_FAILURE);
2001 packet_put_int(remote_id); 2002 packet_put_int(remote_id);
2002 packet_send(); 2003 packet_send();
@@ -2609,6 +2610,7 @@ x11_input_open(int type, u_int32_t seq, void *ctxt)
2609 /* Send refusal to the remote host. */ 2610 /* Send refusal to the remote host. */
2610 packet_start(SSH_MSG_CHANNEL_OPEN_FAILURE); 2611 packet_start(SSH_MSG_CHANNEL_OPEN_FAILURE);
2611 packet_put_int(remote_id); 2612 packet_put_int(remote_id);
2613 xfree(remote_host);
2612 } else { 2614 } else {
2613 /* Send a confirmation to the remote host. */ 2615 /* Send a confirmation to the remote host. */
2614 packet_start(SSH_MSG_CHANNEL_OPEN_CONFIRMATION); 2616 packet_start(SSH_MSG_CHANNEL_OPEN_CONFIRMATION);