mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-14 04:18:54 +03:00
server: Fix a double free.
This commit is contained in:
@@ -927,7 +927,7 @@ int ssh_message_auth_interactive_request(ssh_message msg, const char *name,
|
|||||||
r = buffer_add_ssh_string(msg->session->out_buffer, tmp);
|
r = buffer_add_ssh_string(msg->session->out_buffer, tmp);
|
||||||
ssh_string_free(tmp);
|
ssh_string_free(tmp);
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
goto error;
|
return SSH_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* echo[i] */
|
/* echo[i] */
|
||||||
@@ -1003,9 +1003,6 @@ int ssh_message_auth_interactive_request(ssh_message msg, const char *name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
error:
|
|
||||||
if(tmp) ssh_string_free(tmp);
|
|
||||||
return SSH_ERROR;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int ssh_message_auth_reply_success(ssh_message msg, int partial) {
|
int ssh_message_auth_reply_success(ssh_message msg, int partial) {
|
||||||
|
|||||||
Reference in New Issue
Block a user