1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

r13904: Make sure LDB gets initialized

(This used to be commit 4339e3e7d746d2fcb16ce2662a22a880e426367b)
This commit is contained in:
Jelmer Vernooij 2006-03-06 23:34:57 +00:00 committed by Gerald (Jerry) Carter
parent ba564a901e
commit 49efc49541

View File

@ -44,6 +44,7 @@
#include "includes.h" #include "includes.h"
#include "utils/net/net.h" #include "utils/net/net.h"
#include "lib/cmdline/popt_common.h" #include "lib/cmdline/popt_common.h"
#include "lib/ldb/include/ldb.h"
/* /*
run a function from a function table. If not found then run a function from a function table. If not found then
@ -187,6 +188,8 @@ static int binary_net(int argc, const char **argv)
dcerpc_init(); dcerpc_init();
ldb_global_init();
mem_ctx = talloc_init("net_context"); mem_ctx = talloc_init("net_context");
ctx = talloc(mem_ctx, struct net_context); ctx = talloc(mem_ctx, struct net_context);
if (!ctx) { if (!ctx) {