Simplify the logic.
authorJeremy Allison <jra@samba.org>
Thu, 22 Oct 2009 22:26:22 +0000 (15:26 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 22 Oct 2009 22:26:22 +0000 (15:26 -0700)
Jeremy.

source3/libsmb/libsmb_server.c

index 18b12a1a9b6295e7510d862932f5c969166917cf..50ecee2c7eb9a6a9de48cc45d18092d6350257b6 100644 (file)
@@ -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);