diff options
Diffstat (limited to 'source4/utils')
-rw-r--r-- | source4/utils/net/net.c | 3 | ||||
-rw-r--r-- | source4/utils/ntlm_auth.c | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/source4/utils/net/net.c b/source4/utils/net/net.c index dcd663d3fd..ac427c4935 100644 --- a/source4/utils/net/net.c +++ b/source4/utils/net/net.c @@ -207,6 +207,8 @@ static int binary_net(int argc, const char **argv) return 1; } + net_init_subsystems; + mem_ctx = talloc_init("net_context"); ctx = talloc_p(mem_ctx, struct net_context); if (!ctx) { @@ -232,6 +234,5 @@ static int binary_net(int argc, const char **argv) int main(int argc, const char **argv) { - net_init_subsystems; return binary_net(argc, argv); } diff --git a/source4/utils/ntlm_auth.c b/source4/utils/ntlm_auth.c index 5cc02ffbb2..23586b1db5 100644 --- a/source4/utils/ntlm_auth.c +++ b/source4/utils/ntlm_auth.c @@ -861,8 +861,6 @@ enum { POPT_TABLEEND }; - ntlm_auth_init_subsystems; - /* Samba client initialisation */ setup_logging("ntlm_auth", DEBUG_STDERR); @@ -899,6 +897,9 @@ enum { return 1; } + ntlm_auth_init_subsystems; + + if (opt_domain == NULL) { opt_domain = lp_workgroup(); } |