r14101: Fix a segfault in trustdom establish, cli is NULL here.
authorVolker Lendecke <vlendec@samba.org>
Thu, 9 Mar 2006 21:07:15 +0000 (21:07 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:11:12 +0000 (11:11 -0500)
source/utils/net_rpc.c

index ada246e11779fe0cf71cbd84342ba820dbc2a4fe..1ba6794272843b1de3f04a0a64769e2f93343196 100644 (file)
@@ -5551,7 +5551,7 @@ static int rpc_trustdom_establish(int argc, const char **argv)
 
        /* store who we connected to */
 
-       saf_store( domain_name, cli->desthost );
+       saf_store( domain_name, pdc_name );
        
        /*
         * Connect to \\server\ipc$ again (this time anonymously)