summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-04-02 07:45:19 +0000
committerJeremy Allison <jra@samba.org>2002-04-02 07:45:19 +0000
commit6a64206a27c028fbbd2dac8779dbc0aa53a4020b (patch)
treefd77290dcddd71bf450c9ee6a290609d7e140fee /source3/passdb
parent105d1301d54d783a2663f0507eb547b0c2e07fe2 (diff)
downloadsamba-6a64206a27c028fbbd2dac8779dbc0aa53a4020b.tar.gz
samba-6a64206a27c028fbbd2dac8779dbc0aa53a4020b.tar.bz2
samba-6a64206a27c028fbbd2dac8779dbc0aa53a4020b.zip
Fix from Stefan "metze" Metzmacher <metze@metzemix.de> to prevent us
overwriting an old MACHINE.SID sid. Jeremy. (This used to be commit 896d4fac98460778f72378b084a76d5aab11462e)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/machine_sid.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/passdb/machine_sid.c b/source3/passdb/machine_sid.c
index af66471a39..6436a2cd05 100644
--- a/source3/passdb/machine_sid.c
+++ b/source3/passdb/machine_sid.c
@@ -139,6 +139,11 @@ BOOL pdb_generate_sam_sid(void)
return False;
}
}
+
+ /* Stored the old sid from MACHINE.SID successfully.
+ Patch from Stefan "metze" Metzmacher <metze@metzemix.de>*/
+ SAFE_FREE(fname);
+ return True;
}
SAFE_FREE(fname);