diff options
author | Simo Sorce <idra@samba.org> | 2008-04-14 12:43:37 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-04-14 12:45:51 -0400 |
commit | 4f51b0246db3242ee02ee16905cba13a5dc5633a (patch) | |
tree | af0692f28714db6e2c4ef6d985e501db58e57732 /source4/utils/net/net_time.c | |
parent | 97e09c2f877779ca6d55684d33b1a24b8a280e51 (diff) | |
download | samba-4f51b0246db3242ee02ee16905cba13a5dc5633a.tar.gz samba-4f51b0246db3242ee02ee16905cba13a5dc5633a.tar.bz2 samba-4f51b0246db3242ee02ee16905cba13a5dc5633a.zip |
Fix problems with event context not being the parent.
(This used to be commit 957c4d893acf9e6db06a3fc3a4687ab6bb238635)
Diffstat (limited to 'source4/utils/net/net_time.c')
-rw-r--r-- | source4/utils/net/net_time.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/utils/net/net_time.c b/source4/utils/net/net_time.c index 1f4bb3ed71..12a8132cea 100644 --- a/source4/utils/net/net_time.c +++ b/source4/utils/net/net_time.c @@ -22,6 +22,7 @@ #include "libnet/libnet.h" #include "utils/net/net.h" #include "system/time.h" +#include "lib/events/events.h" /* * Code for getting the remote time @@ -42,7 +43,7 @@ int net_time(struct net_context *ctx, int argc, const char **argv) return net_time_usage(ctx, argc, argv); } - libnetctx = libnet_context_init(NULL, ctx->lp_ctx); + libnetctx = libnet_context_init(event_context_find(ctx), ctx->lp_ctx); if (!libnetctx) { return -1; } @@ -53,7 +54,7 @@ int net_time(struct net_context *ctx, int argc, const char **argv) r.generic.in.server_name = server_name; /* get the time */ - status = libnet_RemoteTOD(libnetctx, ctx->mem_ctx, &r); + status = libnet_RemoteTOD(libnetctx, ctx, &r); if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("net_time: %s\n",r.generic.out.error_string)); return -1; |