mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-08 03:42:12 +03:00
sftpserver: Do not override the ssh error code
Fixes: https://gitlab.com/libssh/libssh-mirror/-/issues/275#note_2162076660 Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Sahana Prasad <sahana@redhat.com>
This commit is contained in:
@@ -258,12 +258,10 @@ error:
|
||||
|
||||
sftp_client_message sftp_get_client_message(sftp_session sftp)
|
||||
{
|
||||
ssh_session session = sftp->session;
|
||||
sftp_packet packet;
|
||||
sftp_packet packet = NULL;
|
||||
|
||||
packet = sftp_packet_read(sftp);
|
||||
if (packet == NULL) {
|
||||
ssh_set_error_oom(session);
|
||||
return NULL;
|
||||
}
|
||||
return sftp_make_client_message(sftp, packet);
|
||||
|
||||
Reference in New Issue
Block a user