diff options
author | relyea%netscape.com <devnull@localhost> | 2002-12-13 18:23:43 +0000 |
---|---|---|
committer | relyea%netscape.com <devnull@localhost> | 2002-12-13 18:23:43 +0000 |
commit | 5838826b187db45f06bc9cd7752787c2cbeff3e5 (patch) | |
tree | c7bc94c5c2525c147e0972b8122a697b67ef095c | |
parent | 64a3c47498afac4d0950c066d5be73f4c3e0b85a (diff) | |
download | nss-hg-5838826b187db45f06bc9cd7752787c2cbeff3e5.tar.gz |
Advance the tmpbuf pointer before we read the email entry lengths.
-rw-r--r-- | security/nss/lib/softoken/pcertdb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/nss/lib/softoken/pcertdb.c b/security/nss/lib/softoken/pcertdb.c index 59600f70f..db7179c0c 100644 --- a/security/nss/lib/softoken/pcertdb.c +++ b/security/nss/lib/softoken/pcertdb.c @@ -2367,6 +2367,7 @@ DecodeDBSubjectEntry(certDBEntrySubject *entry, SECItem *dbentry, if ((eaddrlen == 0) && (tmpbuf+1 < end)) { /* read in the additional email addresses */ entry->nemailAddrs = tmpbuf[0] << 8 | tmpbuf[1]; + tmpbuf += 2; entry->emailAddrs = (char **) PORT_ArenaAlloc(arena, entry->nemailAddrs * sizeof(char *)); if (entry->emailAddrs == NULL) { |