summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrelyea%netscape.com <devnull@localhost>2002-06-14 17:29:56 +0000
committerrelyea%netscape.com <devnull@localhost>2002-06-14 17:29:56 +0000
commit10f07ee9ab924de3ecd6c3c68c2e75554c53f79d (patch)
treef0aa07d2b9d9d56301d95d2c1cf7c4eaf2494726
parent6f790bb671aceffe339e738e16d693f66f559fec (diff)
downloadnss-hg-10f07ee9ab924de3ecd6c3c68c2e75554c53f79d.tar.gz
check version of the existing DB, not the updatedb.
-rw-r--r--security/nss/lib/softoken/keydb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/lib/softoken/keydb.c b/security/nss/lib/softoken/keydb.c
index 87819ff96..f135d19d2 100644
--- a/security/nss/lib/softoken/keydb.c
+++ b/security/nss/lib/softoken/keydb.c
@@ -858,7 +858,7 @@ openNewDB(const char *appName, const char *prefix, const char *dbname,
/* force a transactional read, which will verify that one and only one
* process attempts the update. */
- if (nsslowkey_version(updatedb) == NSSLOWKEY_DB_FILE_VERSION) {
+ if (nsslowkey_version(handle->db) == NSSLOWKEY_DB_FILE_VERSION) {
/* someone else has already updated the database for us */
db_FinishTransaction(handle->db, PR_FALSE);
return SECSuccess;