diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-02-17 00:58:47 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-02-17 00:58:47 +0000 |
commit | ffacf609a6e93fad6964284dcfd6028f5c7f1628 (patch) | |
tree | b6d780e529c721e00d7acd99495867ed8989fdf8 /source3/auth | |
parent | b2a253bd47f6f20c2ecef30bdacd35be21c3b5a2 (diff) | |
download | samba-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)
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth_util.c | 4 |
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; } |