mirror of
https://github.com/danog/phpseclib.git
synced 2025-01-22 04:51:19 +01:00
- 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:
parent
b39d2597dd
commit
3141c0f803
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user