提交 cf3a5ceb 编写于 作者: B Bodo Möller

Call msg_callback with correct length parameter if ssl3_write_bytes had to

be called multiple times
上级 a661b653
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册