diff options
author | ian.mcgreer%sun.com <devnull@localhost> | 2002-03-14 17:42:02 +0000 |
---|---|---|
committer | ian.mcgreer%sun.com <devnull@localhost> | 2002-03-14 17:42:02 +0000 |
commit | 41a934eefa5b963b152b8662235b3b991023fe65 (patch) | |
tree | 0950a61788054fc1b8dd429928dd10baa15a03fd | |
parent | 6194f7664e4241fa48df9e9503dd66858564d7d2 (diff) | |
download | nss-hg-41a934eefa5b963b152b8662235b3b991023fe65.tar.gz |
bug 129709, incorrect free of cert->nickname
r=wtc
-rw-r--r-- | security/nss/lib/certdb/stanpcertdb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/security/nss/lib/certdb/stanpcertdb.c b/security/nss/lib/certdb/stanpcertdb.c index 20d9ffa73..293b33d8a 100644 --- a/security/nss/lib/certdb/stanpcertdb.c +++ b/security/nss/lib/certdb/stanpcertdb.c @@ -148,12 +148,11 @@ __CERT_AddTempCertToPerm(CERTCertificate *cert, char *nickname, stanNick = NSSCertificate_GetNickname(c, NULL); if (stanNick && nickname && strcmp(nickname, stanNick) != 0) { /* take the new nickname */ - PORT_Free(cert->nickname); + cert->nickname = NULL; stanNick = NULL; } if (!stanNick && nickname) { stanNick = nssUTF8_Duplicate((NSSUTF8 *)nickname, c->object.arena); - cert->nickname = PORT_Strdup(nickname); } /* Delete the temp instance */ nssCertificateStore_Remove(context->certStore, c); |