mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
Merge pull request #4 from Xenopathic/patch-2
Fix smbclient_state_init argument order
This commit is contained in:
commit
0f6ebbf5e8
2 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ class NativeServer extends Server {
|
||||||
list($workgroup, $user) = explode($user, '/');
|
list($workgroup, $user) = explode($user, '/');
|
||||||
}
|
}
|
||||||
$this->state = smbclient_state_new();
|
$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) {
|
if (!$result) {
|
||||||
throw new ConnectionError();
|
throw new ConnectionError();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ class NativeShare implements IShare {
|
||||||
list($workgroup, $user) = explode($user, '/');
|
list($workgroup, $user) = explode($user, '/');
|
||||||
}
|
}
|
||||||
$this->state = smbclient_state_new();
|
$this->state = smbclient_state_new();
|
||||||
$result = smbclient_state_init($this->state, $workgroup, $this->server->getPassword(), $user);
|
$result = smbclient_state_init($this->state, $workgroup, $user, $this->server->getPassword());
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
throw new ConnectionError();
|
throw new ConnectionError();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue