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:
parent
ab62c8d93a
commit
b8c07babbd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user