mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Fix smbclient_state_init argument order
This commit is contained in:
parent
e58b72e488
commit
31b1cfdaf6
2 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ class NativeServer extends Server {
|
|||
list($workgroup, $user) = explode($user, '/');
|
||||
}
|
||||
$this->state = smbclient_state_new();
|
||||
$result = smbclient_state_init($this->state, $workgroup, $this->getPassword(), $user);
|
||||
$result = smbclient_state_init($this->state, $workgroup, $user, $this->getPassword());
|
||||
if (!$result) {
|
||||
throw new ConnectionError();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue