s3: Remove "mem_ctx" from wcache_save_creds()
authorVolker Lendecke <vl@samba.org>
Thu, 9 Sep 2010 02:09:21 +0000 (19:09 -0700)
committerVolker Lendecke <vl@samba.org>
Thu, 9 Sep 2010 04:19:24 +0000 (06:19 +0200)
source3/winbindd/winbindd_cache.c
source3/winbindd/winbindd_creds.c
source3/winbindd/winbindd_proto.h

index d0f0e9b42f50acd4efde8412bb74f4211cb88a31..9c48c71aa284bc96bd17f5982977b279aba2131b 100644 (file)
@@ -1359,7 +1359,6 @@ NTSTATUS wcache_get_creds(struct winbindd_domain *domain,
 /* Store creds for a SID - only writes out new salted ones. */
 
 NTSTATUS wcache_save_creds(struct winbindd_domain *domain, 
-                          TALLOC_CTX *mem_ctx, 
                           const struct dom_sid *sid,
                           const uint8 nt_pass[NT_HASH_LEN])
 {
index c4a700b70dd4d27971976511d38664cb5b298765..174eba4f4d438e1434cf8058ea15e37cd281188c 100644 (file)
@@ -112,7 +112,7 @@ NTSTATUS winbindd_store_creds(struct winbindd_domain *domain,
 
                dump_data_pw("nt_pass", nt_pass, NT_HASH_LEN);
 
-               status = wcache_save_creds(domain, mem_ctx, &cred_sid, nt_pass);
+               status = wcache_save_creds(domain, &cred_sid, nt_pass);
                if (!NT_STATUS_IS_OK(status)) {
                        return status;
                }
index bc703a8775f7019d844a7f1b010acfdc1fee5fc6..60fb647c93ae99a3d76ab08bbae52f7204878160 100644 (file)
@@ -90,7 +90,6 @@ NTSTATUS wcache_get_creds(struct winbindd_domain *domain,
                          const uint8 **cached_nt_pass,
                          const uint8 **cached_salt);
 NTSTATUS wcache_save_creds(struct winbindd_domain *domain, 
-                          TALLOC_CTX *mem_ctx, 
                           const struct dom_sid *sid,
                           const uint8 nt_pass[NT_HASH_LEN]);
 void wcache_invalidate_samlogon(struct winbindd_domain *domain,