1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r13861: Avoid "net rpc join" segfaulting when storing the servername in the

affinity cache.

Guenther
This commit is contained in:
Günther Deschner 2006-03-06 14:55:27 +00:00 committed by Gerald (Jerry) Carter
parent ab62c8d93a
commit b8c07babbd

View File

@ -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);