HomePhabricator

sftp: Set error when EOF is received in sftp_packet_read()

Authored by Anderson Toshiyuki Sasaki <ansasaki@redhat.com> on Dec 3 2018, 5:25 PM.

Description

sftp: Set error when EOF is received in sftp_packet_read()

When reading a sftp packet and an EOF is received before all requested
bytes are read, set the session and sftp error codes.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>

Details

Committed
asnDec 7 2018, 5:43 PM
Parents
rLIBSSH58113d489eec: connect: Fix size type for i an j in ssh_select()
Branches
Unknown
Tags
Unknown