diff options
author | Jeremy Allison <jra@samba.org> | 2009-10-22 15:26:22 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-10-22 15:26:22 -0700 |
commit | 4a1a9f579265e885c6fabb3acc3cf0d930feacc3 (patch) | |
tree | d882af19650abc73a5d7305f480f46f79f1f458e /source3 | |
parent | 843adc1981d0ad380d207bdc014209aa8dd73344 (diff) | |
download | samba-4a1a9f579265e885c6fabb3acc3cf0d930feacc3.tar.gz samba-4a1a9f579265e885c6fabb3acc3cf0d930feacc3.tar.bz2 samba-4a1a9f579265e885c6fabb3acc3cf0d930feacc3.zip |
Simplify the logic.
Jeremy.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/libsmb_server.c | 7 |
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); |