aboutsummaryrefslogtreecommitdiff
path: root/ssl/t1_trce.c
diff options
context:
space:
mode:
authorcedral <joseph@southwell.org>2018-04-04 14:54:47 +0200
committerBernd Edlinger <bernd.edlinger@hotmail.de>2018-04-04 14:54:47 +0200
commitd8fa9324d25b07efd45761a0fee6b0f89c18924b (patch)
tree0328ff4b06bacd8454ff05a26a55922f980e7e6d /ssl/t1_trce.c
parent6b49b30811f4afa0340342af9400b8d0357b5291 (diff)
downloadopenssl-d8fa9324d25b07efd45761a0fee6b0f89c18924b.zip
openssl-d8fa9324d25b07efd45761a0fee6b0f89c18924b.tar.gz
openssl-d8fa9324d25b07efd45761a0fee6b0f89c18924b.tar.bz2
Visual Studio 2017 debug build warning error on 32 bit build
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/5799)
Diffstat (limited to 'ssl/t1_trce.c')
-rw-r--r--ssl/t1_trce.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssl/t1_trce.c b/ssl/t1_trce.c
index d3f67f5..394df98 100644
--- a/ssl/t1_trce.c
+++ b/ssl/t1_trce.c
@@ -1504,7 +1504,8 @@ void SSL_trace(int write_p, int version, int content_type,
int hvers;
/* avoid overlapping with length at the end of buffer */
- if (msglen < (SSL_IS_DTLS(ssl) ? 13 : 5)) {
+ if (msglen < (size_t)(SSL_IS_DTLS(ssl) ?
+ DTLS1_RT_HEADER_LENGTH : SSL3_RT_HEADER_LENGTH)) {
BIO_puts(bio, write_p ? "Sent" : "Received");
ssl_print_hex(bio, 0, " too short message", msg, msglen);
break;