diff options
author | Günther Deschner <gd@samba.org> | 2010-09-21 20:56:23 -0700 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-09-23 10:26:25 -0700 |
commit | ffdfcfb514c1a0849ba334ae6b9b00d3ad3c2227 (patch) | |
tree | 536860be90ee3531863894f87e5c24b1cb523702 /source3/utils/net.c | |
parent | c3f5d990652aec4b4f1f23a5e1c7b644cd46cbe7 (diff) | |
download | samba-ffdfcfb514c1a0849ba334ae6b9b00d3ad3c2227.tar.gz samba-ffdfcfb514c1a0849ba334ae6b9b00d3ad3c2227.tar.bz2 samba-ffdfcfb514c1a0849ba334ae6b9b00d3ad3c2227.zip |
s3-dsgetdcname: always pass in messaging context.
Volker, please check.
Guenther
Diffstat (limited to 'source3/utils/net.c')
-rw-r--r-- | source3/utils/net.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c index eea13ea138..6c2fbad59a 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -929,6 +929,12 @@ static struct functable net_func[] = { c->opt_password = getenv("PASSWD"); } + c->msg_ctx = messaging_init(c, procid_self(), + event_context_init(c)); + if (c->msg_ctx == NULL) { + exit(1); + } + rc = net_run_function(c, argc_new-1, argv_new+1, "net", net_func); DEBUG(2,("return code = %d\n", rc)); |