From: Günther Deschner Date: Tue, 4 Mar 2008 10:04:36 +0000 (+0100) Subject: Move talloc_init to the right place in "net ads join". X-Git-Tag: samba-3.3.0pre1~3436^2~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8cd07c1fa8f435f7ff3dc79c195da9324fb2452f;p=thirdparty%2Fsamba.git Move talloc_init to the right place in "net ads join". Guenther --- diff --git a/source/utils/net_ads.c b/source/utils/net_ads.c index 9358a4f1840..46e0a2591bb 100644 --- a/source/utils/net_ads.c +++ b/source/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