From af1a0238aa106a43006902e8ef593d7853913b0e Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 24 Nov 2001 00:36:37 +0000 Subject: Kill off that crazy copy_sam_passwd(). You simply can't do that if the structre contains pointers (well not if you intend of free those pointers at some stage) There is no reason (given the new passdb interface) that you can't modify a SAM_ACCOUNT in any case. Andrew Bartlett (This used to be commit e8e73f7f0fcd86c8c2bfe3fc0b44ea2fd6570cc5) --- source3/passdb/passdb.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'source3/passdb/passdb.c') diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index dc8e5471e1..873e569f68 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -867,18 +867,6 @@ void copy_id21_to_sam_passwd(SAM_ACCOUNT *to, SAM_USER_INFO_21 *from) to->unknown_6 = from->unknown_6; } -/************************************************************* - Copies a SAM_ACCOUNT. - **************************************************************/ - -void copy_sam_passwd(SAM_ACCOUNT *to, const SAM_ACCOUNT *from) -{ - if (!from || !to) - return; - - memcpy(to, from, sizeof(SAM_ACCOUNT)); -} - /************************************************************* Change a password entry in the local smbpasswd file. -- cgit