mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +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();
|
struct winbindd_domain *ours = find_our_domain();
|
||||||
|
|
||||||
if ( !ours )
|
if (ours->forest_name[0] == '\0') {
|
||||||
return NULL;
|
|
||||||
|
|
||||||
if ( strlen(ours->forest_name) == 0 )
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return find_domain_from_name( ours->forest_name );
|
return find_domain_from_name( ours->forest_name );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user