summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/nss/lib/softoken/keydb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/security/nss/lib/softoken/keydb.c b/security/nss/lib/softoken/keydb.c
index e224c18d9..8f168a296 100644
--- a/security/nss/lib/softoken/keydb.c
+++ b/security/nss/lib/softoken/keydb.c
@@ -544,7 +544,7 @@ makeGlobalSalt(SECKEYKeyDBHandle *handle)
static char *
keyDBFilenameCallback(void *arg, int dbVersion)
{
- return((char *)arg);
+ return(PORT_Strdup((char *)arg));
}
SECKEYKeyDBHandle *
@@ -629,8 +629,8 @@ newdb:
handle->db = dbopen( dbname,
O_RDWR | O_CREAT | O_TRUNC, 0600, DB_HASH, 0 );
- PORT_Free( dbname );
- dbname = NULL;
+ PORT_Free( dbname );
+ dbname = NULL;
/* if create fails then we lose */
if ( handle->db == NULL ) {
@@ -664,8 +664,8 @@ newdb:
}
}
- PORT_Free( dbname );
- dbname = NULL;
+ PORT_Free( dbname );
+ dbname = NULL;
}
/* we are using the old salt if we updated from an old db */