Skip to content

Commit

Permalink
Visual Studio 2017 debug build warning error on 32 bit build
Browse files Browse the repository at this point in the history
Reviewed-by: Rich Salz <[email protected]>
Reviewed-by: Bernd Edlinger <[email protected]>
(Merged from openssl#5799)
  • Loading branch information
cedral authored and bernd-edlinger committed Apr 4, 2018
1 parent 6b49b30 commit d8fa932
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ssl/t1_trce.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d8fa932

Please sign in to comment.