git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09c612f
)
s3-masktest: Fix cli_errstr() usage (part of bug #7864)
author
Björn Baumbach
<bb@sernet.de>
Thu, 20 Jan 2011 13:08:42 +0000
(14:08 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 25 Jan 2011 09:45:22 +0000
(10:45 +0100)
Convert cli_errstr() to nt_errstr()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/torture/masktest.c
patch
|
blob
|
history
diff --git
a/source3/torture/masktest.c
b/source3/torture/masktest.c
index 1fc46b9c2802a8cd6dd27245c135c9a3051dd360..887910284441c5553f55afd0f36d9f587fc02e0f 100644
(file)
--- a/
source3/torture/masktest.c
+++ b/
source3/torture/masktest.c
@@
-226,11
+226,12
@@
static struct cli_state *connect_one(char *share)
}
}
- if (!NT_STATUS_IS_OK(cli_session_setup(c, username,
- password, strlen(password),
- password, strlen(password),
- lp_workgroup()))) {
- DEBUG(0,("session setup failed: %s\n", cli_errstr(c)));
+ status = cli_session_setup(c, username,
+ password, strlen(password),
+ password, strlen(password),
+ lp_workgroup());
+ if (!NT_STATUS_IS_OK(status)) {
+ DEBUG(0, ("session setup failed: %s\n", nt_errstr(status)));
return NULL;
}