diff options
-rw-r--r-- | source3/rpcclient/rpcclient.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index ff4354f818..43df6723fc 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -956,8 +956,6 @@ out_free: poptFreeContext(pc); - load_interfaces(); - if (!init_names()) { result = 1; goto done; @@ -968,6 +966,9 @@ out_free: if (!lp_load_global(get_dyn_CONFIGFILE())) fprintf(stderr, "Can't load %s\n", get_dyn_CONFIGFILE()); + /* We must load interfaces after we load the smb.conf */ + load_interfaces(); + /* * Get password * from stdin if necessary |