diff options
-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); |