diff options
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth_util.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 1621630b87..530b8da096 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -1600,9 +1600,7 @@ NTSTATUS do_map_to_guest_server_info(NTSTATUS status, user, domain)); status = make_server_info_guest(NULL, server_info); } - } - - if (NT_STATUS_EQUAL(status, NT_STATUS_WRONG_PASSWORD)) { + } else if (NT_STATUS_EQUAL(status, NT_STATUS_WRONG_PASSWORD)) { if (lp_map_to_guest() == MAP_TO_GUEST_ON_BAD_PASSWORD) { DEBUG(3,("Registered username %s for guest access\n", user)); |