summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-10-22 15:26:22 -0700
committerJeremy Allison <jra@samba.org>2009-10-22 15:26:22 -0700
commit4a1a9f579265e885c6fabb3acc3cf0d930feacc3 (patch)
treed882af19650abc73a5d7305f480f46f79f1f458e /source3/libsmb
parent843adc1981d0ad380d207bdc014209aa8dd73344 (diff)
downloadsamba-4a1a9f579265e885c6fabb3acc3cf0d930feacc3.tar.gz
samba-4a1a9f579265e885c6fabb3acc3cf0d930feacc3.tar.bz2
samba-4a1a9f579265e885c6fabb3acc3cf0d930feacc3.zip
Simplify the logic.
Jeremy.
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/libsmb_server.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/libsmb/libsmb_server.c b/source3/libsmb/libsmb_server.c
index 18b12a1a9b..50ecee2c7e 100644
--- a/source3/libsmb/libsmb_server.c
+++ b/source3/libsmb/libsmb_server.c
@@ -498,13 +498,10 @@ again:
errno = EPERM;
return NULL;
}
- status = cli_init_creds(c, username_used,
- *pp_workgroup, *pp_password);
- } else {
- status = cli_init_creds(c, username_used,
- *pp_workgroup, *pp_password);
}
+ status = cli_init_creds(c, username_used,
+ *pp_workgroup, *pp_password);
if (!NT_STATUS_IS_OK(status)) {
errno = map_errno_from_nt_status(status);
cli_shutdown(c);