diff options
-rw-r--r-- | lib/libssl/src/ssl/s3_pkt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libssl/src/ssl/s3_pkt.c b/lib/libssl/src/ssl/s3_pkt.c index 5ef25a4059f..2a88b148521 100644 --- a/lib/libssl/src/ssl/s3_pkt.c +++ b/lib/libssl/src/ssl/s3_pkt.c @@ -564,6 +564,8 @@ ssl3_write_bytes(SSL *s, int type, const void *buf_, int len) } } + if (len < tot) + len = tot; n = (len - tot); for (;;) { if (n > s->max_send_fragment) |