Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
{
bool ok;
- TALLOC_FREE(ctx->workgroup);
- ctx->workgroup = talloc_strdup(ctx, workgroup);
- if (!ctx->workgroup) {
- return W_ERROR_V(WERR_NOT_ENOUGH_MEMORY);
- }
-
ok = cli_credentials_set_domain(ctx->creds, workgroup, CRED_SPECIFIED);
if (!ok) {
return W_ERROR_V(WERR_INTERNAL_ERROR);
struct libnetapi_ctx {
char *debuglevel;
char *error_string;
- char *workgroup;
int use_kerberos;
int use_ccache;
int disable_policy_handle_cache;