1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

winbindd: Use is_domain_offline() where appropriate

That if-condition is precisely covered by the helper routine

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2018-05-18 16:15:06 +02:00 committed by Jeremy Allison
parent ea4b40e65a
commit 73b183e138

View File

@ -1123,7 +1123,7 @@ do_query:
/* If its not in cache and we are offline, then fail */
if ( get_global_winbindd_state_offline() || !domain->online ) {
if (is_domain_offline(domain)) {
DEBUG(8,("resolve_username_to_alias: rejecting query "
"in offline mode\n"));
return NT_STATUS_NOT_FOUND;
@ -1203,7 +1203,7 @@ do_query:
/* If its not in cache and we are offline, then fail */
if ( get_global_winbindd_state_offline() || !domain->online ) {
if (is_domain_offline(domain)) {
DEBUG(8,("resolve_alias_to_username: rejecting query "
"in offline mode\n"));
return NT_STATUS_NOT_FOUND;