mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Fix connection->read() when first line is not prompt.
Signed-off-by: Ari Selseng <ari@selseng.net>
This commit is contained in:
parent
db16d4430c
commit
ebdada86f1
1 changed files with 5 additions and 1 deletions
|
|
@ -66,7 +66,11 @@ class Connection extends RawConnection {
|
||||||
$this->parser->checkConnectionError($promptLine);
|
$this->parser->checkConnectionError($promptLine);
|
||||||
|
|
||||||
$output = [];
|
$output = [];
|
||||||
|
if (!$this->isPrompt($promptLine)) {
|
||||||
|
$line = $promptLine;
|
||||||
|
} else {
|
||||||
$line = $this->readLine();
|
$line = $this->readLine();
|
||||||
|
}
|
||||||
if ($line === false) {
|
if ($line === false) {
|
||||||
$this->unknownError($promptLine);
|
$this->unknownError($promptLine);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue