mirror of
https://github.com/samba-team/samba.git
synced 2025-01-21 18:04:06 +03:00
s3:winbindd: Skip check_negative_conn_cache() if saf_servername == NULL
saf_servername can be NULL even after calling saf_fetch(). Avoid calling check_negative_conn_cache() like it was before commit 0fcf0012 Signed-off-by: Pavel Filipenský <pfilipensky@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
10a4a977ba
commit
928ce91eb7
@ -1426,9 +1426,12 @@ static bool connect_preferred_dc(TALLOC_CTX *mem_ctx,
|
||||
* Check the negative connection cache before talking to it. It going
|
||||
* down may have triggered the reconnection.
|
||||
*/
|
||||
status = check_negative_conn_cache(domain->name, saf_servername);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
saf_servername = NULL;
|
||||
if (saf_servername != NULL) {
|
||||
status = check_negative_conn_cache(domain->name,
|
||||
saf_servername);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
saf_servername = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (saf_servername != NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user