summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Beurdouche <bbeurdouche@mozilla.com>2021-08-26 09:26:49 +0000
committerBenjamin Beurdouche <bbeurdouche@mozilla.com>2021-08-26 09:26:49 +0000
commitf676bfd6051dc5d232c4267cc0e1d10685015f4d (patch)
tree093be6d686ed210c5b4667b8295cad32a63fcb75
parentbe2f17bfcf7e8196eeba121bb32b3432799d2e4d (diff)
downloadnss-hg-f676bfd6051dc5d232c4267cc0e1d10685015f4d.tar.gz
Bug 1662515 - Fix incorrect alert after successful decryption r=djackson
Differential Revision: https://phabricator.services.mozilla.com/D90107
-rw-r--r--lib/ssl/tls13con.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ssl/tls13con.c b/lib/ssl/tls13con.c
index 267dafcdb..a58b9e2ef 100644
--- a/lib/ssl/tls13con.c
+++ b/lib/ssl/tls13con.c
@@ -5871,6 +5871,7 @@ tls13_UnprotectRecord(sslSocket *ss,
SSL_TRC(3, ("%d: TLS13[%d]: empty record", SSL_GETPID(), ss->fd));
/* It's safe to report this specifically because it happened
* after the MAC has been verified. */
+ *alert = unexpected_message;
PORT_SetError(SSL_ERROR_BAD_BLOCK_PADDING);
return SECFailure;
}