diff options
author | Bodo Möller <bodo@openssl.org> | 2001-10-20 18:56:01 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-10-20 18:56:01 +0000 |
commit | cf3a5cebd7d1a2094da18930acc3c926d7094ecd (patch) | |
tree | 6c2cae88f62da92ef4a9b7536545277fe5359929 /ssl/s3_both.c | |
parent | a661b6535744f41b428bb35a7fc3e5747900e9ef (diff) |
Call msg_callback with correct length parameter if ssl3_write_bytes had to
be called multiple times
Diffstat (limited to 'ssl/s3_both.c')
-rw-r--r-- | ssl/s3_both.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |