mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r19391: Fix crash bug within the winbind caching method.
That one was hard to find: when coming from offline mode and switching to online, a refresh sequence number call (using the default MS-RPC mechanism) may reset domain->backend to NULL (by the set_domain_online event). We need to make sure to reidentify the remote domain in that case. Guenther
This commit is contained in:
parent
6ff2ad4246
commit
4d6503d137
@ -443,6 +443,11 @@ static void refresh_sequence_number(struct winbindd_domain *domain, BOOL force)
|
||||
|
||||
status = domain->backend->sequence_number(domain, &domain->sequence_number);
|
||||
|
||||
/* the above call could have set our domain->backend to NULL when
|
||||
* coming from offline to online mode, make sure to reinitialize the
|
||||
* backend - Guenther */
|
||||
get_cache( domain );
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(10,("refresh_sequence_number: failed with %s\n", nt_errstr(status)));
|
||||
domain->sequence_number = DOM_SEQUENCE_NONE;
|
||||
|
Loading…
Reference in New Issue
Block a user