diff options
author | wtc%netscape.com <devnull@localhost> | 2003-06-05 17:48:50 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2003-06-05 17:48:50 +0000 |
commit | 000a8e7908b47c8e9f7dfe89435c04fc4a8adce7 (patch) | |
tree | ccffd705960c564f645ae0de340f46942b7c72a9 | |
parent | 052be501bce15aca4210cbe07884102a2e54a33d (diff) | |
download | nss-hg-000a8e7908b47c8e9f7dfe89435c04fc4a8adce7.tar.gz |
Eliminate more NULL pointer dereferences. Bug 207740.
Tag: NSS_3_8_BRANCH
-rw-r--r-- | security/nss/lib/certdb/genname.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/security/nss/lib/certdb/genname.c b/security/nss/lib/certdb/genname.c index 7c29d6da4..94cde971a 100644 --- a/security/nss/lib/certdb/genname.c +++ b/security/nss/lib/certdb/genname.c @@ -433,12 +433,12 @@ cert_DecodeGeneralNames (PRArenaPool *arena, } currentName->l.next = head; currentName->l.prev = tail; - tail = &(currentName->l); - (cert_get_prev_general_name(currentName))->l.next = tail; + tail = head->prev = tail->next = &(currentName->l); encodedGenName++; } - (cert_get_next_general_name(currentName))->l.prev = tail; - return cert_get_next_general_name(currentName); + if (currentName) { + return cert_get_next_general_name(currentName); + } loser: return NULL; } |