From: Bodo Möller Date: Sat, 20 Oct 2001 18:56:01 +0000 (+0000) Subject: Call msg_callback with correct length parameter if ssl3_write_bytes had to X-Git-Tag: OpenSSL_0_9_6c~26^2~109 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cf3a5cebd7d1a2094da18930acc3c926d7094ecd;p=oweals%2Fopenssl.git Call msg_callback with correct length parameter if ssl3_write_bytes had to be called multiple times --- diff --git a/ssl/s3_both.c b/ssl/s3_both.c index fa84077f68..c69e8d2308 100644 --- a/ssl/s3_both.c +++ b/ssl/s3_both.c @@ -135,7 +135,7 @@ int ssl3_do_write(SSL *s, int type) if (ret == s->init_num) { if (s->msg_callback) - s->msg_callback(1, s->version, type, s->init_buf->data, (size_t)s->init_num, s, s->msg_callback_arg); + s->msg_callback(1, s->version, type, s->init_buf->data, (size_t)(s->init_off + s->init_num), s, s->msg_callback_arg); return(1); } s->init_off+=ret;