1
0
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:
Volker Lendecke 2009-12-30 20:09:52 +01:00
parent 133f023d58
commit a66341b993

View File

@ -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 );
}