if (pass_last_set_time) *pass_last_set_time = pass->mod_time;
memcpy(ret_pwd, pass->hash, 16);
- free(pass);
+ SAFE_FREE(pass);
return True;
}
uchar trust_passwd[16];
struct in_addr *ip_list = NULL;
int count;
- uint16 validation_level;
fstring controller, trust_account;
int num_retries = 0;
global_myname);
#if 0 /* XXX */
+ {
+ uint16 validation_level;
status = cli_nt_setup_creds(controller, lp_workgroup(), global_myname,
trust_account, trust_passwd,
SEC_CHAN_WKSTA, &validation_level);
+ }
#endif
/* There is a race condition between fetching the trust account
if (!ted) {
DEBUG(0,("winbindd_list_trusted_domains: failed to enlarge buffer!\n"));
- if (extra_data) free(extra_data);
+ SAFE_FREE(extra_data);
return WINBINDD_ERROR;
}
else extra_data = ted;