r16624: Fix bug #3877, reported by jason@ncac.gwu.edu
authorJeremy Allison <jra@samba.org>
Wed, 28 Jun 2006 17:11:06 +0000 (17:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:19:04 +0000 (11:19 -0500)
Jeremy.

source/passdb/pdb_tdb.c

index 94be32162c5902cd42967c136208246a7d83ca1d..11bbbc186cbb7a058429febaae8b525b15ac84ce 100644 (file)
@@ -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;
        }