From 5887885da3c98d7b72a6c6f876a0d352fe3efcde Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 28 Jun 2006 17:11:06 +0000 Subject: r16624: Fix bug #3877, reported by jason@ncac.gwu.edu Jeremy. (This used to be commit 1f52b8b40619679242da663f5e5e7836d547f0a2) --- source3/passdb/pdb_tdb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/passdb/pdb_tdb.c') 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; } -- cgit