summaryrefslogtreecommitdiff
path: root/source3/passdb/pdb_tdb.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-01-26 23:55:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:06:16 -0500
commit3ea781f62a93a251891a0e57babe36118e92ddea (patch)
tree1f8353ef34a6be0431a54eb61c6b7ccb64c9d025 /source3/passdb/pdb_tdb.c
parentabfc68fdc386ec415e7f445ad7d52c16492a4687 (diff)
downloadsamba-3ea781f62a93a251891a0e57babe36118e92ddea.tar.gz
samba-3ea781f62a93a251891a0e57babe36118e92ddea.tar.bz2
samba-3ea781f62a93a251891a0e57babe36118e92ddea.zip
r13172: Fix incorrect error message when new tdb not created correctly.
Jeremy. (This used to be commit e5f19ad5ac1b728de4ca5a6c37c0d79b0752f536)
Diffstat (limited to 'source3/passdb/pdb_tdb.c')
-rw-r--r--source3/passdb/pdb_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c
index 8bf9b1b282..d58187ffe5 100644
--- a/source3/passdb/pdb_tdb.c
+++ b/source3/passdb/pdb_tdb.c
@@ -420,7 +420,7 @@ static NTSTATUS tdbsam_getsampwnam (struct pdb_methods *my_methods, SAM_ACCOUNT
* TDB file doesn't exist, so try to create new one. This is useful to avoid
* confusing error msg when adding user account first time
*/
- if (!(pwd_tdb = tdbsam_tdbopen(tdb_state->tdbsam_location, O_CREAT ))) {
+ if ((pwd_tdb = tdbsam_tdbopen(tdb_state->tdbsam_location, O_CREAT )) != NULL) {
DEBUG(0, ("pdb_getsampwnam: TDB passwd (%s) did not exist. File successfully created.\n",
tdb_state->tdbsam_location));
} else {