summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-11-14 01:40:40 +0000
committerJeremy Allison <jra@samba.org>2000-11-14 01:40:40 +0000
commitf77ceb61c07d2ff3cc28d24a873a2209d0c52e0a (patch)
treea6808d8486ca8525f6f1e726d53e8a41bc639f5f /source3/passdb
parent8993ee7d6c13b8b7bd9c7a165a2748a8ba38654b (diff)
downloadsamba-f77ceb61c07d2ff3cc28d24a873a2209d0c52e0a.tar.gz
samba-f77ceb61c07d2ff3cc28d24a873a2209d0c52e0a.tar.bz2
samba-f77ceb61c07d2ff3cc28d24a873a2209d0c52e0a.zip
Fixed the cut-n-paste bugs in the new passdb backend code that leaked memory.
Jeremy. (This used to be commit 55c6acce26a26af68149865dafb42e5a03b497e0)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/passdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index 5b5b2e8a98..14597129df 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -1420,7 +1420,7 @@ BOOL pdb_set_domain (SAM_ACCOUNT *sampass, char *domain)
{
if (sampass)
{
- sampass->username = strdup(domain);
+ sampass->domain = strdup(domain);
return True;
}
@@ -1431,7 +1431,7 @@ BOOL pdb_set_nt_username (SAM_ACCOUNT *sampass, char *nt_username)
{
if (sampass)
{
- sampass->username = strdup(nt_username);
+ sampass->nt_username = strdup(nt_username);
return True;
}