mirror of
https://github.com/samba-team/samba.git
synced 2025-09-19 13:44:20 +03:00
s3: simplify find_root_domain, find_our_domain() never fails
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user