Skip to content

Release the RTMP peer key after key agreement - #3501

Open
wasphin wants to merge 1 commit into
apache:masterfrom
wasphin:fix-rtmp-peer-key-release
Open

Release the RTMP peer key after key agreement#3501
wasphin wants to merge 1 commit into
apache:masterfrom
wasphin:fix-rtmp-peer-key-release

Conversation

@wasphin

@wasphin wasphin commented Aug 28, 2026

Copy link
Copy Markdown
Member

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:

Free the temporary peer public key after DH_compute_key returns so both
successful and failed key agreement paths release it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant