summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-08-02 09:06:22 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-08-03 18:48:05 +1000
commit8131dd9df3b3ab284b68c2a942f9fa6cc88bd315 (patch)
treebf5ae393a3d189d5283db8ac4489997a46a61d20 /source3
parent8fca9741fe7fca3a899fdff7ab667de1364f0ea9 (diff)
downloadsamba-8131dd9df3b3ab284b68c2a942f9fa6cc88bd315.tar.gz
samba-8131dd9df3b3ab284b68c2a942f9fa6cc88bd315.tar.bz2
samba-8131dd9df3b3ab284b68c2a942f9fa6cc88bd315.zip
s3-auth directly return the result of make_server_info_guest()
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/auth_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index b8cc871b62..f41809d58d 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -1581,13 +1581,13 @@ NTSTATUS do_map_to_guest_server_info(NTSTATUS status,
(lp_map_to_guest() == MAP_TO_GUEST_ON_BAD_PASSWORD)) {
DEBUG(3,("No such user %s [%s] - using guest account\n",
user, domain));
- status = make_server_info_guest(NULL, server_info);
+ return make_server_info_guest(NULL, server_info);
}
} 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));
- status = make_server_info_guest(NULL, server_info);
+ return make_server_info_guest(NULL, server_info);
}
}