vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Jan F 436639
diff -up openssh-5.6p1/clientloop.c.clientloop openssh-5.6p1/clientloop.c
Jan F 436639
--- openssh-5.6p1/clientloop.c.clientloop	2010-11-24 08:18:10.000000000 +0100
Jan F 436639
+++ openssh-5.6p1/clientloop.c	2010-11-24 08:18:11.000000000 +0100
Jan F 436639
@@ -1944,7 +1944,7 @@ client_input_channel_req(int type, u_int
Jan F 436639
 		}
Jan F 436639
 		packet_check_eom();
Jan F 436639
 	}
Jan F 436639
-	if (reply) {
Jan F 436639
+	if (reply && c != NULL) {
Jan F 436639
 		packet_start(success ?
Jan F 436639
 		    SSH2_MSG_CHANNEL_SUCCESS : SSH2_MSG_CHANNEL_FAILURE);
Jan F 436639
 		packet_put_int(c->remote_id);