diff options
author | Gerald Carter <jerry@samba.org> | 2006-01-30 14:34:58 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2006-01-30 14:34:58 +0000 |
commit | 2b82c27c43ea51b227843be9981fe5e0dc7da747 (patch) | |
tree | bf7e13f5ba9424c635926db2715c54e725a0c36f /source/passdb/pdb_tdb.c | |
parent | 0554e81da56048625d4dfebaf13c50e27dcded90 (diff) | |
download | samba-2b82c27c43ea51b227843be9981fe5e0dc7da747.tar.gz samba-2b82c27c43ea51b227843be9981fe5e0dc7da747.tar.xz samba-2b82c27c43ea51b227843be9981fe5e0dc7da747.zip |
r13230: ready to do for 3.0.21b
Diffstat (limited to 'source/passdb/pdb_tdb.c')
-rw-r--r-- | source/passdb/pdb_tdb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/passdb/pdb_tdb.c b/source/passdb/pdb_tdb.c index 8bf9b1b2828..de79b4096a6 100644 --- a/source/passdb/pdb_tdb.c +++ b/source/passdb/pdb_tdb.c @@ -423,6 +423,7 @@ static NTSTATUS tdbsam_getsampwnam (struct pdb_methods *my_methods, SAM_ACCOUNT if (!(pwd_tdb = tdbsam_tdbopen(tdb_state->tdbsam_location, O_CREAT ))) { DEBUG(0, ("pdb_getsampwnam: TDB passwd (%s) did not exist. File successfully created.\n", tdb_state->tdbsam_location)); + tdb_close(pwd_tdb); } else { DEBUG(0, ("pdb_getsampwnam: TDB passwd (%s) does not exist. Couldn't create new one. Error was: %s\n", tdb_state->tdbsam_location, strerror(errno))); |