www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: sftp_packet_require() patch

sftp_packet_require() patch

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


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.


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

Received on 2013-08-09

the libssh2 team