Add error checking to ssh_message_auth_reply_success().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@444 7dcaeef0-15fb-0310-b436-a5af3365683c
Этот коммит содержится в:
родитель
e5b7e8fdfc
Коммит
38d8875021
@ -298,11 +298,20 @@ error:
|
||||
return rc;
|
||||
}
|
||||
|
||||
int ssh_message_auth_reply_success(SSH_MESSAGE *msg,int partial){
|
||||
if(partial)
|
||||
return ssh_message_auth_reply_default(msg,partial);
|
||||
buffer_add_u8(msg->session->out_buffer,SSH2_MSG_USERAUTH_SUCCESS);
|
||||
return packet_send(msg->session);
|
||||
int ssh_message_auth_reply_success(SSH_MESSAGE *msg, int partial) {
|
||||
if (msg == NULL) {
|
||||
return SSH_ERROR;
|
||||
}
|
||||
|
||||
if (partial) {
|
||||
return ssh_message_auth_reply_default(msg, partial);
|
||||
}
|
||||
|
||||
if (buffer_add_u8(msg->session->out_buffer,SSH2_MSG_USERAUTH_SUCCESS) < 0) {
|
||||
return SSH_ERROR;
|
||||
}
|
||||
|
||||
return packet_send(msg->session);
|
||||
}
|
||||
|
||||
static SSH_MESSAGE *handle_channel_request_open(SSH_SESSION *session){
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user