diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-07-27 13:20:59 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-08-03 18:48:02 +1000 |
commit | c9bde9ae753939710d63262917accca1dabe9a52 (patch) | |
tree | ed1ac1ab5b1ae7b2951085f478098e6edc516f54 | |
parent | 8a650243b336f5a85ff119aa40c7744542c005e7 (diff) | |
download | samba-c9bde9ae753939710d63262917accca1dabe9a52.tar.gz samba-c9bde9ae753939710d63262917accca1dabe9a52.tar.bz2 samba-c9bde9ae753939710d63262917accca1dabe9a52.zip |
s3-auth Use else if in do_map_to_guest_server_info
This means we can't ever call make_server_info_guest() twice.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
-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)); |