diff options
-rw-r--r-- | source3/passdb/passdb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 715eb9ed4c..deac2bbd6e 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -1152,9 +1152,11 @@ DOM_SID *local_uid_to_sid(DOM_SID *psid, uid_t uid) DEBUG(4,("local_uid_to_sid: User %s [uid == %lu] has no samba account\n", unix_pw->pw_name, (unsigned long)uid)); - return algorithmic_uid_to_sid( psid, uid); + algorithmic_uid_to_sid( psid, uid); } + pdb_free_sam(&sampw); + DEBUG(10,("local_uid_to_sid: uid (%d) -> SID %s (%s).\n", (unsigned int)uid, sid_string_static(psid), unix_pw->pw_name)); |