diff options
author | Andreas Schneider <asn@samba.org> | 2013-02-25 09:31:12 +0100 |
---|---|---|
committer | David Disseldorp <ddiss@suse.de> | 2013-03-05 23:29:29 +0100 |
commit | 659dd65f8f5c352a4cd17e072929a8cc0b6e4d34 (patch) | |
tree | e42a4edba7eef49be14fdd923a90928a3243a968 /source3/winbindd/winbindd_util.c | |
parent | 14bae61ba36814ea5eca7c51cf1cc039e9e6803f (diff) | |
download | samba-659dd65f8f5c352a4cd17e072929a8cc0b6e4d34.tar.gz samba-659dd65f8f5c352a4cd17e072929a8cc0b6e4d34.tar.bz2 samba-659dd65f8f5c352a4cd17e072929a8cc0b6e4d34.zip |
winbind: Correctly use names in the domain struct.
Reviewed-by: David Disseldorp <ddiss@samba.org>
Diffstat (limited to 'source3/winbindd/winbindd_util.c')
-rw-r--r-- | source3/winbindd/winbindd_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c index 4759fd5109..85b014d97c 100644 --- a/source3/winbindd/winbindd_util.c +++ b/source3/winbindd/winbindd_util.c @@ -683,7 +683,7 @@ struct winbindd_domain *find_domain_from_name_noinit(const char *domain_name) for (domain = domain_list(); domain != NULL; domain = domain->next) { if (strequal(domain_name, domain->name) || - (domain->alt_name[0] && + (domain->alt_name != NULL && strequal(domain_name, domain->alt_name))) { return domain; } @@ -763,7 +763,7 @@ struct winbindd_domain *find_root_domain(void) { struct winbindd_domain *ours = find_our_domain(); - if (ours->forest_name[0] == '\0') { + if (ours->forest_name == NULL) { return NULL; } |