mirror of
https://github.com/samba-team/samba.git
synced 2025-08-24 21:49:29 +03:00
Pass NULL instead of unneeded &sid: pdb_get_trusteddom_pw() checks.
Michael
(This used to be commit b2e12365b5
)
This commit is contained in:
@ -1537,7 +1537,6 @@ bool is_trusted_domain_situation(const char *domain_name)
|
||||
bool get_trust_pw_clear(const char *domain, char **ret_pwd,
|
||||
const char **account_name, uint32 *channel)
|
||||
{
|
||||
DOM_SID sid;
|
||||
char *pwd;
|
||||
time_t last_set_time;
|
||||
|
||||
@ -1545,7 +1544,7 @@ bool get_trust_pw_clear(const char *domain, char **ret_pwd,
|
||||
* for the domain trust */
|
||||
|
||||
if (is_trusted_domain_situation(domain)) {
|
||||
if (!pdb_get_trusteddom_pw(domain, ret_pwd, &sid,
|
||||
if (!pdb_get_trusteddom_pw(domain, ret_pwd, NULL,
|
||||
&last_set_time))
|
||||
{
|
||||
DEBUG(0, ("get_trust_pw: could not fetch trust "
|
||||
|
Reference in New Issue
Block a user