diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/nss/lib/certdb/certdb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/security/nss/lib/certdb/certdb.c b/security/nss/lib/certdb/certdb.c index f3692742e..b1d6fae9c 100644 --- a/security/nss/lib/certdb/certdb.c +++ b/security/nss/lib/certdb/certdb.c @@ -1345,8 +1345,7 @@ cert_VerifySubjectAltName(CERTCertificate *cert, const char *hn) if (!cn) goto finish; } - PORT_Memcpy(cn, current->name.other.data, - current->name.other.len); + PORT_Memcpy(cn, current->name.other.data, cnLen); cn[cnLen] = 0; rv = cert_TestHostName(cn ,hn); if (rv == SECSuccess) |