diff options
-rw-r--r-- | source3/rpcclient/rpcclient.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 4421e12054..5e66b18263 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -716,16 +716,6 @@ out_free: if (!interactive) reopen_logs(); - load_interfaces(); - - if (!init_names()) - return 1; - - /* Load smb.conf file */ - - if (!lp_load(dyn_CONFIGFILE,True,False,False,True)) - fprintf(stderr, "Can't load %s\n", dyn_CONFIGFILE); - /* Parse options */ pc = poptGetContext("rpcclient", argc, (const char **) argv, @@ -760,6 +750,16 @@ out_free: poptFreeContext(pc); + load_interfaces(); + + if (!init_names()) + return 1; + + /* Load smb.conf file */ + + if (!lp_load(dyn_CONFIGFILE,True,False,False,True)) + fprintf(stderr, "Can't load %s\n", dyn_CONFIGFILE); + /* * Get password * from stdin if necessary |