From b8c07babbd22832132da8f70026aa1816983bc38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= Date: Mon, 6 Mar 2006 14:55:27 +0000 Subject: [PATCH] r13861: Avoid "net rpc join" segfaulting when storing the servername in the affinity cache. Guenther --- source/utils/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utils/net.c b/source/utils/net.c index 032c65bc592..99a289bcd43 100644 --- a/source/utils/net.c +++ b/source/utils/net.c @@ -397,7 +397,7 @@ struct cli_state *net_make_ipc_connection(unsigned flags) /* store the server in the affinity cache if it was a PDC */ - if ( flags & NET_FLAGS_PDC ) + if ( (flags & NET_FLAGS_PDC) && NT_STATUS_IS_OK(nt_status) ) saf_store( cli->server_domain, cli->desthost ); SAFE_FREE(server_name);