hannestschofenig / mbedtls

An open source, portable, easy to use, readable and flexible SSL library
https://tls.mbed.org
Apache License 2.0
15 stars 8 forks source link

Fix memory leak at HRR after 0-RTT #362

Closed hanno-becker closed 3 years ago

hanno-becker commented 3 years ago

When moving the HS and 0-RTT transforms to the handshake, I didn't forget to explicitly clear them in reset_msg_layer() which is called upon receipt of an HRR. This would lead to a leak when an HRR is used after 0-RTT.

@lhuang04 Can you check?

lhuang04 commented 3 years ago

LGTM.