Subject: sftp_packet_require() patch

sftp_packet_require() patch

From: Leif Salomonsson <dev_at_blubbedev.net>
Date: 09 Aug 2013 17:02:50 +0100

Hi

I noticed this problem when calling sftp_statvfs() when connected
to a server that does not support statvfs extension. This results in
the server returning a STATUS instead of an EXTENDED_REPLY. Libssh2
is not prepared for this, and just waits for EXTENDED_REPLY to arrive,
which never happens. My proposed fix is attached.
It modifies sftp_packet_require() to handle this specific scenario.

Regards
Leif

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Received on 2013-08-09