Fix Windows build.

signed/unsigned comparison. Just add a cast for now as in s3_both.c. Later
we'll properly size_t it alongside other tightening of this interface.

Change-Id: Idc8441d65e8ca65e39ab7172a8ec87d9ad710ed6
Reviewed-on: https://boringssl-review.googlesource.com/3860
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
David Benjamin 2015-03-10 00:02:26 -04:00 committed by Adam Langley
parent 389939422a
commit bf0df92964

View File

@ -596,7 +596,7 @@ long dtls1_get_message(SSL *s, int st1, int stn, int msg_type, long max,
assert(s->d1->handshake_read_seq == frag->msg_header.seq);
assert(frag->reassembly == NULL);
if (frag->msg_header.msg_len > max) {
if (frag->msg_header.msg_len > (size_t)max) {
OPENSSL_PUT_ERROR(SSL, dtls1_get_message, SSL_R_EXCESSIVE_MESSAGE_SIZE);
goto err;
}