r7633: this patch started as an attempt to make the dcerpc code use a given
[samba.git] / source4 / utils / net / net_time.c
index 507cfd5f6d6f709c04a4bcb8e1126785b97ac5ed..8bdef1f7620cca51277a08f706d387cb30722ee1 100644 (file)
@@ -43,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();
+       libnetctx = libnet_context_init(NULL);
        if (!libnetctx) {
                return -1;      
        }
@@ -66,7 +66,7 @@ int net_time(struct net_context *ctx, int argc, const char **argv)
 
        printf("%s\n",timestr);
 
-       libnet_context_destroy(&libnetctx);
+       talloc_free(libnetctx);
 
        return 0;
 }