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:
parent
ba564a901e
commit
49efc49541
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user