1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Move talloc_init to the right place in "net ads join".

Guenther
This commit is contained in:
Günther Deschner 2008-03-04 11:04:36 +01:00
parent 0d73bde6de
commit 8cd07c1fa8

View File

@ -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++ ) {