From 105825cf5a0de9f270e140910d1376d6c43d57a7 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 6 Mar 2006 14:55:27 +0000 Subject: r13861: Avoid "net rpc join" segfaulting when storing the servername in the affinity cache. Guenther (This used to be commit b8c07babbd22832132da8f70026aa1816983bc38) --- source3/utils/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/utils/net.c b/source3/utils/net.c index 032c65bc59..99a289bcd4 100644 --- a/source3/utils/net.c +++ b/source3/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); -- cgit