summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-01-04 22:56:06 -0800
committerJeremy Allison <jra@samba.org>2008-01-04 22:56:06 -0800
commitd5bd2e7000592b8256b837415c40e20f319fb07b (patch)
treefca69915b9432f5525c6f22709eedb7e89d0c7d4 /source3/smbd
parente86fd65dcdcbff1e5fe6c3f87bd0fb44b63fa233 (diff)
downloadsamba-d5bd2e7000592b8256b837415c40e20f319fb07b.tar.gz
samba-d5bd2e7000592b8256b837415c40e20f319fb07b.tar.bz2
samba-d5bd2e7000592b8256b837415c40e20f319fb07b.zip
Can't use logical operations on boolean values.
Jeremy. (This used to be commit 34cd9b5b51a4209b4d970eb90bf1db0eb24a60bb)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/sesssetup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 167682ede2..bc1d26faca 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -537,7 +537,9 @@ static void reply_spnego_kerberos(struct smb_request *req,
}
}
- server_info->was_mapped |= username_was_mapped;
+ if (username_was_mapped) {
+ server_info->was_mapped = username_was_mapped;
+ }
/* we need to build the token for the user. make_server_info_guest()
already does this */