summaryrefslogtreecommitdiff
path: root/lib/cryptohi
diff options
context:
space:
mode:
authorAlexander Scheel <ascheel@redhat.com>2020-07-02 16:30:42 +0000
committerAlexander Scheel <ascheel@redhat.com>2020-07-02 16:30:42 +0000
commit05bb49902e5c2d18eb3dcf761ffb759737ef00ed (patch)
treee47054d72059773144514abb28ccc6d9ec08aa4c /lib/cryptohi
parent40ebd16d10b050a73ba7833425872aaaf4802217 (diff)
downloadnss-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.c2
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);
}