git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
185a232
)
Make sure that we always return False if the password change never returns.
author
Andrew Bartlett
<abartlet@samba.org>
Sat, 26 Oct 2002 00:59:21 +0000
(
00:59
+0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Sat, 26 Oct 2002 00:59:21 +0000
(
00:59
+0000)
(A stuck 'unix passowrd sync' was gettting reported as 'success', causing
all sorts of fun)
Andrew Bartlett
(This used to be commit
b0d5745bb53b16e92160a6bdd2b984afb0e982ee
)
source3/libsmb/clirap.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clirap.c
b/source3/libsmb/clirap.c
index 2064e1495439b1f5f73bea7fbd105125181c8fe3..b4924fd77356d4352e88c8b20cfe885a96d9b1a9 100644
(file)
--- a/
source3/libsmb/clirap.c
+++ b/
source3/libsmb/clirap.c
@@
-343,13
+343,17
@@
BOOL cli_oem_change_password(struct cli_state *cli, const char *user, const char
return False;
}
- if (cli_receive_trans(cli,SMBtrans,
+ if (
!
cli_receive_trans(cli,SMBtrans,
&rparam, &rprcnt,
&rdata, &rdrcnt)) {
- if (rparam)
- cli->rap_error = SVAL(rparam,0);
+ DEBUG(0,("cli_oem_change_password: Failed to recieve reply to password change for user %s\n",
+ user ));
+ return False;
}
-
+
+ if (rparam)
+ cli->rap_error = SVAL(rparam,0);
+
SAFE_FREE(rparam);
SAFE_FREE(rdata);