Call msg_callback with correct length parameter if ssl3_write_bytes had to
authorBodo Möller <bodo@openssl.org>
Sat, 20 Oct 2001 18:56:01 +0000 (18:56 +0000)
committerBodo Möller <bodo@openssl.org>
Sat, 20 Oct 2001 18:56:01 +0000 (18:56 +0000)
be called multiple times

ssl/s3_both.c

index fa84077f68317cbfb632bc84fb92d5dc082a056b..c69e8d230830ed35c86da181473b54774211bb0c 100644 (file)
@@ -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;