From f77ceb61c07d2ff3cc28d24a873a2209d0c52e0a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 14 Nov 2000 01:40:40 +0000 Subject: Fixed the cut-n-paste bugs in the new passdb backend code that leaked memory. Jeremy. (This used to be commit 55c6acce26a26af68149865dafb42e5a03b497e0) --- source3/passdb/passdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') 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; } -- cgit