summaryrefslogtreecommitdiffstats
path: root/source/auth/auth.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-11-11 11:00:38 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-11-11 11:00:38 +0000
commit80667cb0dd1a2cdef17711c8580af9f524971cea (patch)
treebcc65a5948d65fde8cdeea07fb1a975afb3b66cf /source/auth/auth.c
parent1a60305f7a368bce16c9d6d989942670186dec72 (diff)
downloadsamba-80667cb0dd1a2cdef17711c8580af9f524971cea.tar.gz
samba-80667cb0dd1a2cdef17711c8580af9f524971cea.tar.xz
samba-80667cb0dd1a2cdef17711c8580af9f524971cea.zip
Minor updates. A small dose of const.
Diffstat (limited to 'source/auth/auth.c')
-rw-r--r--source/auth/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/auth/auth.c b/source/auth/auth.c
index 67f80afdda8..95c97182b85 100644
--- a/source/auth/auth.c
+++ b/source/auth/auth.c
@@ -36,7 +36,7 @@ static BOOL check_domain_match(char *user, char *domain)
*/
if (!lp_allow_trusted_domains() &&
- !strequal(lp_workgroup(), domain) ) {
+ (!strequal(lp_workgroup(), domain) || strequal("", domain))) {
DEBUG(1, ("check_domain_match: Attempt to connect as user %s from domain %s denied.\n", user, domain));
return False;
} else {