diff options
author | relyea%netscape.com <devnull@localhost> | 2000-05-31 22:36:02 +0000 |
---|---|---|
committer | relyea%netscape.com <devnull@localhost> | 2000-05-31 22:36:02 +0000 |
commit | 71bf46c80c7033471a529809658842df74a6eff6 (patch) | |
tree | 46f17b144bd9d6c04c8fc589286ba6e06ae6df81 | |
parent | 2cf282e7ee0d1867c53197a0930c1ea86c74e542 (diff) | |
download | nss-hg-71bf46c80c7033471a529809658842df74a6eff6.tar.gz |
Fix bug which would have bypassed mac checking in TLS
-rw-r--r-- | security/nss/lib/softoken/pkcs11c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/lib/softoken/pkcs11c.c b/security/nss/lib/softoken/pkcs11c.c index 0bdc5be30..11ea8f459 100644 --- a/security/nss/lib/softoken/pkcs11c.c +++ b/security/nss/lib/softoken/pkcs11c.c @@ -1710,7 +1710,7 @@ pk11_TLSPRFVerify(TLSPRFContext *cx, pk11_TLSPRFHashUpdate(cx, hash, hashLen); } rv = pk11_TLSPRFUpdate(cx, tmp, &tmpLen, sigLen, NULL, 0); - if (rv = SECSuccess) { + if (rv == SECSuccess) { rv = (SECStatus)(1 - !PORT_Memcmp(tmp, sig, sigLen)); } PORT_ZFree(tmp, sigLen); |