1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-12 15:41:16 +03:00

Fix bugs found by clang

This commit is contained in:
Aris Adamantiadis
2011-09-23 22:27:46 +02:00
parent 8a3b02f68d
commit 046aa02f39
4 changed files with 9 additions and 2 deletions

View File

@@ -165,6 +165,8 @@ SSH_PACKET_CALLBACK(ssh_packet_kexdh_init){
default:
ssh_set_error(session,SSH_FATAL,"Wrong kex type in ssh_packet_kexdh_init");
}
if (rc == SSH_ERROR)
session->session_state = SSH_SESSION_STATE_ERROR;
error:
leave_function();
return SSH_PACKET_USED;