summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-12-25 14:48:45 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-12-25 14:48:45 +0100
commitef453c63af3d29c428029aa39a5b59b0317c76ce (patch)
tree2feeff75abf1f606a7d6f5ece31317379fe315db /source4/libnet/libnet.c
parent33699bb1be03f0288562c899aa8f3963ff1cc312 (diff)
downloadsamba-ef453c63af3d29c428029aa39a5b59b0317c76ce.tar.gz
samba-ef453c63af3d29c428029aa39a5b59b0317c76ce.tar.bz2
samba-ef453c63af3d29c428029aa39a5b59b0317c76ce.zip
py_net/libnet: Remove C++-style comments, add more error checking, move
initialization of dcerpc subsystem to libnet.
Diffstat (limited to 'source4/libnet/libnet.c')
-rw-r--r--source4/libnet/libnet.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/libnet/libnet.c b/source4/libnet/libnet.c
index b10fb65df6..86cf80b4da 100644
--- a/source4/libnet/libnet.c
+++ b/source4/libnet/libnet.c
@@ -42,6 +42,9 @@ struct libnet_context *libnet_context_init(struct tevent_context *ev,
ctx->event_ctx = ev;
ctx->lp_ctx = lp_ctx;
+ /* make sure dcerpc is initialized */
+ dcerpc_init(lp_ctx);
+
/* name resolution methods */
ctx->resolve_ctx = lp_resolve_context(lp_ctx);