diff options
author | wtc%netscape.com <devnull@localhost> | 2002-08-22 18:05:32 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2002-08-22 18:05:32 +0000 |
commit | b61d7b8835bb670d5c6451b6c5ecec6e16e5b56c (patch) | |
tree | f132296ce0f72a54f6ff1d109c1f0844db15b8bf /security | |
parent | 6272b7c3d935459304a4b36267a7f23aeaf3159f (diff) | |
download | nss-hg-b61d7b8835bb670d5c6451b6c5ecec6e16e5b56c.tar.gz |
Bug 164035: checked in a small code optimization suggested by
J?rg Brunsmann <joerg_brunsmann@yahoo.de>. Use the local variable that
has the same value.
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) |