diff options
author | Gerald Carter <jerry@samba.org> | 2003-07-11 15:17:06 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-07-11 15:17:06 +0000 |
commit | 24ce328662bcfb412071ff6b016aa7a61c184543 (patch) | |
tree | 1f4c8e29c94ae4da918dc1a8c8fe0372b01cb28c /source3/passdb | |
parent | 3a40c45807275ae897796ce3c8c45f747e2b2312 (diff) | |
download | samba-24ce328662bcfb412071ff6b016aa7a61c184543.tar.gz samba-24ce328662bcfb412071ff6b016aa7a61c184543.tar.bz2 samba-24ce328662bcfb412071ff6b016aa7a61c184543.zip |
fix unitialised variable
(This used to be commit 5efa0d7cc28d903c1986b8e40072ae49e9532a88)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_tdb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c index 6f5d348ce1..1078a5bd26 100644 --- a/source3/passdb/pdb_tdb.c +++ b/source3/passdb/pdb_tdb.c @@ -360,6 +360,12 @@ static BOOL tdb_update_sam(struct pdb_methods *my_methods, SAM_ACCOUNT* newpwd, goto done; } + if ( !(user_rid = pdb_get_user_rid(newpwd)) ) { + DEBUG(0,("tdb_update_sam: SAM_ACCOUNT (%s) with no RID!\n", pdb_get_username(newpwd))); + ret = False; + goto done; + } + /* copy the SAM_ACCOUNT struct into a BYTE buffer for storage */ if ((data.dsize=init_buffer_from_sam (&buf, newpwd, False)) == -1) { DEBUG(0,("tdb_update_sam: ERROR - Unable to copy SAM_ACCOUNT info BYTE buffer!\n")); |