| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Free the temporary peer public key after DH_compute_key returns so both successful and failed key agreement paths release it.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What problem does this PR solve?
Issue Number: resolve
Problem Summary:
DHWrapper::copy_shared_key only released the temporary peer public key
when DH_compute_key failed. Successful RTMP complex handshakes retained the
allocation.
What is changed and the side effects?
Changed:
Release the temporary peer public key immediately after DH_compute_key
returns, covering both success and failure paths.
Side effects:
Performance effects: Negligible; this only releases an allocation when its
last use completes.
Breaking backward compatibility: No.
Check List: