summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-03-06 14:55:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:57 -0500
commit105825cf5a0de9f270e140910d1376d6c43d57a7 (patch)
treef1b1ab19e586f71a21cca8e332aa7f2935c04447 /source3/utils
parent092e3ed45a7d99d260f888f6c1eeaaf914f37e63 (diff)
downloadsamba-105825cf5a0de9f270e140910d1376d6c43d57a7.tar.gz
samba-105825cf5a0de9f270e140910d1376d6c43d57a7.tar.bz2
samba-105825cf5a0de9f270e140910d1376d6c43d57a7.zip
r13861: Avoid "net rpc join" segfaulting when storing the servername in the
affinity cache. Guenther (This used to be commit b8c07babbd22832132da8f70026aa1816983bc38)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net.c2
1 files changed, 1 insertions, 1 deletions
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);