summaryrefslogtreecommitdiff
path: root/lib/ssl
diff options
context:
space:
mode:
authorTim Taubert <ttaubert@mozilla.com>2018-04-26 10:50:18 +0200
committerTim Taubert <ttaubert@mozilla.com>2018-04-26 10:50:18 +0200
commit993020134c39df97ab6369dd6ddabd58dacab37f (patch)
tree807127aaf6b24a303bd0051d7264033ef0a1cf9f /lib/ssl
parent125b27bd98393a8376318cc41813231c11216a0a (diff)
downloadnss-hg-993020134c39df97ab6369dd6ddabd58dacab37f.tar.gz
Bug 1454321 - Add tests for invalid ECDH ServerKeyExchange.Signature.algorithm values r=mt
Reviewers: mt Reviewed By: mt Bug #: 1454321 Differential Revision: https://phabricator.services.mozilla.com/D947
Diffstat (limited to 'lib/ssl')
-rw-r--r--lib/ssl/ssl3ecc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ssl/ssl3ecc.c b/lib/ssl/ssl3ecc.c
index 071ef7d9a..f8b9a9400 100644
--- a/lib/ssl/ssl3ecc.c
+++ b/lib/ssl/ssl3ecc.c
@@ -548,11 +548,13 @@ ssl3_HandleECDHServerKeyExchange(sslSocket *ss, PRUint8 *b, PRUint32 length)
if (ss->ssl3.prSpec->version == SSL_LIBRARY_VERSION_TLS_1_2) {
rv = ssl_ConsumeSignatureScheme(ss, &b, &length, &sigScheme);
if (rv != SECSuccess) {
+ errCode = PORT_GetError();
goto alert_loser; /* malformed or unsupported. */
}
rv = ssl_CheckSignatureSchemeConsistency(ss, sigScheme,
ss->sec.peerCert);
if (rv != SECSuccess) {
+ errCode = PORT_GetError();
goto alert_loser;
}
hashAlg = ssl_SignatureSchemeToHashType(sigScheme);