Fix bug in SSH
This commit is contained in:
parent
a37329ff21
commit
0b8cc472d4
@ -614,6 +614,13 @@ int ssh_authenticate(ssh_session p_ssh_session) {
|
||||
|
||||
do {
|
||||
message = ssh_message_get(p_ssh_session);
|
||||
|
||||
if (message == NULL) {
|
||||
ssh_message_free(message);
|
||||
gUser = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
switch(ssh_message_type(message)) {
|
||||
case SSH_REQUEST_AUTH:
|
||||
switch(ssh_message_subtype(message)) {
|
||||
@ -647,6 +654,7 @@ int ssh_authenticate(ssh_session p_ssh_session) {
|
||||
ssh_message_reply_default(message);
|
||||
break;
|
||||
}
|
||||
|
||||
ssh_message_free(message);
|
||||
} while(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user