mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r13904: Make sure LDB gets initialized
(This used to be commit 4339e3e7d7
)
This commit is contained in:
parent
ba564a901e
commit
49efc49541
@ -44,6 +44,7 @@
|
||||
#include "includes.h"
|
||||
#include "utils/net/net.h"
|
||||
#include "lib/cmdline/popt_common.h"
|
||||
#include "lib/ldb/include/ldb.h"
|
||||
|
||||
/*
|
||||
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();
|
||||
|
||||
ldb_global_init();
|
||||
|
||||
mem_ctx = talloc_init("net_context");
|
||||
ctx = talloc(mem_ctx, struct net_context);
|
||||
if (!ctx) {
|
||||
|
Loading…
Reference in New Issue
Block a user