summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-17 00:58:47 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-17 00:58:47 +0000
commitffacf609a6e93fad6964284dcfd6028f5c7f1628 (patch)
treeb6d780e529c721e00d7acd99495867ed8989fdf8
parentb2a253bd47f6f20c2ecef30bdacd35be21c3b5a2 (diff)
downloadsamba-ffacf609a6e93fad6964284dcfd6028f5c7f1628.tar.gz
samba-ffacf609a6e93fad6964284dcfd6028f5c7f1628.tar.bz2
samba-ffacf609a6e93fad6964284dcfd6028f5c7f1628.zip
If we didn't make the server_info correctly, then don't segfault trying to
set the 'guest' bit. Andrew Bartlett (This used to be commit 960c53bf952de4431da4e90da035fcfbe98f1bd7)
-rw-r--r--source3/auth/auth_util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index bbe0c7cf43..5218467dab 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -838,7 +838,9 @@ NTSTATUS make_server_info_guest(auth_serversupplied_info **server_info)
nt_status = make_server_info_sam(server_info, sampass);
- (*server_info)->guest = True;
+ if (NT_STATUS_IS_OK(nt_status)) {
+ (*server_info)->guest = True;
+ }
return nt_status;
}