diff options
Diffstat (limited to 'libssh/sftp.c')
-rw-r--r-- | libssh/sftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/sftp.c b/libssh/sftp.c index bc5e6379..c6a7e576 100644 --- a/libssh/sftp.c +++ b/libssh/sftp.c @@ -303,7 +303,7 @@ sftp_packet sftp_packet_read(sftp_session sftp) { return NULL; } - if (buffer_get_u32(packet->payload, &size) < 0) { + if (buffer_get_u32(packet->payload, &size) != sizeof(uint32_t)) { buffer_free(packet->payload); SAFE_FREE(packet); sftp_leave_function(); |