- if the SFTP connection was closed prematurely put() could hang (thanks, KCC!)

git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@221 21d32557-59b3-4da0-833f-c5933fad653e
This commit is contained in:
Jim Wigginton 2012-05-14 01:43:49 +00:00
parent b39d2597dd
commit 3141c0f803
1 changed files with 3 additions and 1 deletions

View File

@ -1351,7 +1351,9 @@ class Net_SFTP extends Net_SSH2 {
}
}
$this->_read_put_responses($i);
if (!$this->_read_put_responses($i)) {
return false;
}
if ($mode & NET_SFTP_LOCAL_FILE) {
fclose($fp);