diff options
author | Alexander Scheel <ascheel@redhat.com> | 2020-07-02 16:30:42 +0000 |
---|---|---|
committer | Alexander Scheel <ascheel@redhat.com> | 2020-07-02 16:30:42 +0000 |
commit | 05bb49902e5c2d18eb3dcf761ffb759737ef00ed (patch) | |
tree | e47054d72059773144514abb28ccc6d9ec08aa4c /lib/cryptohi | |
parent | 40ebd16d10b050a73ba7833425872aaaf4802217 (diff) | |
download | nss-hg-05bb49902e5c2d18eb3dcf761ffb759737ef00ed.tar.gz |
Bug 1649487 - Fix bad assert in VFY_EndWithSignature. r=jcj
Differential Revision: https://phabricator.services.mozilla.com/D82054
Diffstat (limited to 'lib/cryptohi')
-rw-r--r-- | lib/cryptohi/secvfy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cryptohi/secvfy.c b/lib/cryptohi/secvfy.c index aa3d6778c..fc0a0c12b 100644 --- a/lib/cryptohi/secvfy.c +++ b/lib/cryptohi/secvfy.c @@ -688,10 +688,10 @@ VFY_EndWithSignature(VFYContext *cx, SECItem *sig) &cx->pkcs1RSADigestInfoLen, cx->key, sig, cx->wincx); - PORT_Assert(cx->hashAlg == hashid); if (rv != SECSuccess) { return SECFailure; } + PORT_Assert(cx->hashAlg == hashid); } return verifyPKCS1DigestInfo(cx, &digest); } |