summaryrefslogtreecommitdiffstats
path: root/source
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
commit1f52b8b40619679242da663f5e5e7836d547f0a2 (patch)
tree235867b97c9c737c6258815ce5af17a9b5154d67 /source
parent1e5042d4c0d1a0d0a5cfbcb0d47815e1510ee52a (diff)
downloadsamba-1f52b8b40619679242da663f5e5e7836d547f0a2.tar.gz
samba-1f52b8b40619679242da663f5e5e7836d547f0a2.tar.xz
samba-1f52b8b40619679242da663f5e5e7836d547f0a2.zip
r16624: Fix bug #3877, reported by jason@ncac.gwu.edu
Jeremy.
Diffstat (limited to 'source')
-rw-r--r--source/passdb/pdb_tdb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/passdb/pdb_tdb.c b/source/passdb/pdb_tdb.c
index 94be32162c5..11bbbc186cb 100644
--- a/source/passdb/pdb_tdb.c
+++ b/source/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;
}