Fixed channel opening failures (infinite loop)

This commit is contained in:
Aris Adamantiadis
2010-07-17 23:51:15 +02:00
parent 96b06e8bb4
commit 8c08b062d0

View File

@@ -201,7 +201,7 @@ SSH_PACKET_CALLBACK(ssh_packet_channel_open_fail){
(long unsigned int) ntohl(code),
error);
SAFE_FREE(error);
channel->state=SSH_CHANNEL_STATE_OPEN_DENIED;
return SSH_PACKET_USED;
}