mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: simplify find_root_domain, find_our_domain() never fails
This commit is contained in:
parent
133f023d58
commit
a66341b993
@ -799,11 +799,9 @@ struct winbindd_domain *find_root_domain(void)
|
||||
{
|
||||
struct winbindd_domain *ours = find_our_domain();
|
||||
|
||||
if ( !ours )
|
||||
return NULL;
|
||||
|
||||
if ( strlen(ours->forest_name) == 0 )
|
||||
if (ours->forest_name[0] == '\0') {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return find_domain_from_name( ours->forest_name );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user