summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libssl/ssl_pkt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_pkt.c b/src/lib/libssl/ssl_pkt.c
index e7bbf37bcd..cfe82a05fc 100644
--- a/src/lib/libssl/ssl_pkt.c
+++ b/src/lib/libssl/ssl_pkt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_pkt.c,v 1.17 2020/02/19 18:22:54 jsing Exp $ */ 1/* $OpenBSD: ssl_pkt.c,v 1.18 2020/02/21 16:06:00 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -627,11 +627,9 @@ ssl3_create_record(SSL *s, unsigned char *p, int type, const unsigned char *buf,
627 SSL_SESSION *sess = s->session; 627 SSL_SESSION *sess = s->session;
628 unsigned char *plen; 628 unsigned char *plen;
629 int eivlen, mac_size; 629 int eivlen, mac_size;
630 int clear = 0;
631 630
632 if ((sess == NULL) || (s->internal->enc_write_ctx == NULL) || 631 if ((sess == NULL) || (s->internal->enc_write_ctx == NULL) ||
633 (EVP_MD_CTX_md(s->internal->write_hash) == NULL)) { 632 (EVP_MD_CTX_md(s->internal->write_hash) == NULL)) {
634 clear = s->internal->enc_write_ctx ? 0 : 1; /* must be AEAD cipher */
635 mac_size = 0; 633 mac_size = 0;
636 } else { 634 } else {
637 mac_size = EVP_MD_CTX_size(s->internal->write_hash); 635 mac_size = EVP_MD_CTX_size(s->internal->write_hash);