summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-04 11:04:36 +0100
committerGünther Deschner <gd@samba.org>2008-03-04 11:04:36 +0100
commitf7b4485fbeabe40b73dd066f6b643a7a5ffee5cd (patch)
tree7c32e0a4d8219d9cd22654ea57fb8913dc1fb3d9 /source3
parent2c5e04b1f72c567898537110be3acbf3936e8584 (diff)
downloadsamba-f7b4485fbeabe40b73dd066f6b643a7a5ffee5cd.tar.gz
samba-f7b4485fbeabe40b73dd066f6b643a7a5ffee5cd.tar.bz2
samba-f7b4485fbeabe40b73dd066f6b643a7a5ffee5cd.zip
Move talloc_init to the right place in "net ads join".
Guenther (This used to be commit 8cd07c1fa8f435f7ff3dc79c195da9324fb2452f)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_ads.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index 9358a4f184..46e0a2591b 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -1121,6 +1121,12 @@ int net_ads_join(int argc, const char **argv)
goto fail;
}
+ if (!(ctx = talloc_init("net_ads_join"))) {
+ d_fprintf(stderr, "Could not initialise talloc context.\n");
+ werr = WERR_NOMEM;
+ goto fail;
+ }
+
use_in_memory_ccache();
werr = libnet_init_JoinCtx(ctx, &r);
@@ -1128,12 +1134,6 @@ int net_ads_join(int argc, const char **argv)
goto fail;
}
- if (!(ctx = talloc_init("net_ads_join"))) {
- d_fprintf(stderr, "Could not initialise talloc context.\n");
- werr = WERR_NOMEM;
- goto fail;
- }
-
/* process additional command line args */
for ( i=0; i<argc; i++ ) {