summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-28 17:11:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:19:04 -0500
commit5887885da3c98d7b72a6c6f876a0d352fe3efcde (patch)
tree5b3c40518e604460a3227b1ae6c1fee096d8f954 /source3
parent3e626e61078500738009a99c0dea8a46551bd315 (diff)
downloadsamba-5887885da3c98d7b72a6c6f876a0d352fe3efcde.tar.gz
samba-5887885da3c98d7b72a6c6f876a0d352fe3efcde.tar.bz2
samba-5887885da3c98d7b72a6c6f876a0d352fe3efcde.zip
r16624: Fix bug #3877, reported by jason@ncac.gwu.edu
Jeremy. (This used to be commit 1f52b8b40619679242da663f5e5e7836d547f0a2)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_tdb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c
index 94be32162c..11bbbc186c 100644
--- a/source3/passdb/pdb_tdb.c
+++ b/source3/passdb/pdb_tdb.c
@@ -1310,7 +1310,6 @@ static BOOL tdb_update_ridrec_only( struct samu* newpwd, int flag )
static BOOL tdb_update_sam(struct pdb_methods *my_methods, struct samu* newpwd, int flag)
{
- uint32 user_rid;
BOOL result = True;
/* invalidate the existing TDB iterator if it is open */
@@ -1325,7 +1324,7 @@ static BOOL tdb_update_sam(struct pdb_methods *my_methods, struct samu* newpwd,
}
#endif
- if ( !(user_rid = pdb_get_user_rid(newpwd)) ) {
+ if (!pdb_get_user_rid(newpwd)) {
DEBUG(0,("tdb_update_sam: struct samu (%s) with no RID!\n", pdb_get_username(newpwd)));
return False;
}