Pass NULL instead of unneeded &sid: pdb_get_trusteddom_pw() checks.
authorMichael Adam <obnox@samba.org>
Tue, 11 Dec 2007 13:12:49 +0000 (14:12 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 13 Dec 2007 09:15:19 +0000 (10:15 +0100)
Michael
(This used to be commit b2e12365b56f24586a7dfcb845f4de51f0b0e7d5)

source3/passdb/passdb.c

index 11c5b681970f550c2e3f7dde14b54d569d96815a..c4248bb48eddd8174e349b41361db4c72a069e04 100644 (file)
@@ -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 "