diff options
Diffstat (limited to 'source4/utils/net')
-rw-r--r-- | source4/utils/net/net_join.c | 4 | ||||
-rw-r--r-- | source4/utils/net/net_password.c | 8 | ||||
-rw-r--r-- | source4/utils/net/net_time.c | 4 | ||||
-rw-r--r-- | source4/utils/net/net_user.c | 4 | ||||
-rw-r--r-- | source4/utils/net/net_vampire.c | 4 |
5 files changed, 12 insertions, 12 deletions
diff --git a/source4/utils/net/net_join.c b/source4/utils/net/net_join.c index 717a9364a5..7f9ab0c635 100644 --- a/source4/utils/net/net_join.c +++ b/source4/utils/net/net_join.c @@ -57,7 +57,7 @@ int net_join(struct net_context *ctx, int argc, const char **argv) domain_name = tmp; - libnetctx = libnet_context_init(); + libnetctx = libnet_context_init(NULL); if (!libnetctx) { return -1; } @@ -78,7 +78,7 @@ int net_join(struct net_context *ctx, int argc, const char **argv) return -1; } - libnet_context_destroy(&libnetctx); + talloc_free(libnetctx); return 0; } diff --git a/source4/utils/net/net_password.c b/source4/utils/net/net_password.c index 68fe9223a1..1912beeb41 100644 --- a/source4/utils/net/net_password.c +++ b/source4/utils/net/net_password.c @@ -53,7 +53,7 @@ static int net_password_change(struct net_context *ctx, int argc, const char **a new_password = getpass(password_prompt); } - libnetctx = libnet_context_init(); + libnetctx = libnet_context_init(NULL); if (!libnetctx) { return -1; } @@ -73,7 +73,7 @@ static int net_password_change(struct net_context *ctx, int argc, const char **a return -1; } - libnet_context_destroy(&libnetctx); + talloc_free(libnetctx); return 0; } @@ -128,7 +128,7 @@ static int net_password_set(struct net_context *ctx, int argc, const char **argv new_password = getpass(password_prompt); } - libnetctx = libnet_context_init(); + libnetctx = libnet_context_init(NULL); if (!libnetctx) { return -1; } @@ -147,7 +147,7 @@ static int net_password_set(struct net_context *ctx, int argc, const char **argv return -1; } - libnet_context_destroy(&libnetctx); + talloc_free(libnetctx); return 0; } diff --git a/source4/utils/net/net_time.c b/source4/utils/net/net_time.c index 507cfd5f6d..8bdef1f762 100644 --- a/source4/utils/net/net_time.c +++ b/source4/utils/net/net_time.c @@ -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; } diff --git a/source4/utils/net/net_user.c b/source4/utils/net/net_user.c index b1bf85d6f2..dabb4a0d61 100644 --- a/source4/utils/net/net_user.c +++ b/source4/utils/net/net_user.c @@ -44,7 +44,7 @@ static int net_user_add(struct net_context *ctx, int argc, const char **argv) } /* libnet context init and its params */ - lnet_ctx = libnet_context_init(); + lnet_ctx = libnet_context_init(NULL); if (!lnet_ctx) return -1; lnet_ctx->cred = ctx->credentials; @@ -61,7 +61,7 @@ static int net_user_add(struct net_context *ctx, int argc, const char **argv) return -1; } - libnet_context_destroy(&lnet_ctx); + talloc_free(lnet_ctx); return 0; } diff --git a/source4/utils/net/net_vampire.c b/source4/utils/net/net_vampire.c index 5a17544e82..e60fd85a7d 100644 --- a/source4/utils/net/net_vampire.c +++ b/source4/utils/net/net_vampire.c @@ -31,7 +31,7 @@ int net_samdump(struct net_context *ctx, int argc, const char **argv) struct libnet_context *libnetctx; union libnet_SamDump r; - libnetctx = libnet_context_init(); + libnetctx = libnet_context_init(NULL); if (!libnetctx) { return -1; } @@ -50,7 +50,7 @@ int net_samdump(struct net_context *ctx, int argc, const char **argv) return -1; } - libnet_context_destroy(&libnetctx); + talloc_free(libnetctx); return 0; } |