Don't reset the packet pointer in ssl3_setup_read_buffer
authorMatt Caswell <matt@openssl.org>
Tue, 13 Jul 2021 16:19:12 +0000 (17:19 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 16 Jul 2021 10:20:20 +0000 (12:20 +0200)
commit21ba77cad67f6a40b051ac9d57069fa58d0658f7
tree09457a135da93d9dad5f9f047b4e7f4b556e62d2
parente0ad156d22587514b60920143917cdb149734212
Don't reset the packet pointer in ssl3_setup_read_buffer

Sometimes this function gets called when the buffers have already been
set up. If there is already a partial packet in the read buffer then the
packet pointer will be set to an incorrect value. The packet pointer already
gets reset to the correct value when we first read a packet anyway, so we
don't also need to do it in ssl3_setup_read_buffer.

Fixes #13729

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16077)
ssl/record/ssl3_buffer.c