Skip to content

Memory leak in SSL_set_tlsext_status_ocsp_resp #28888

@rgacogne

Description

@rgacogne

Hi,

It seems that after b1b4b15 (3.6.0-alpha1) the resp parameter passed to SSL_set_tlsext_status_ocsp_resp is no longer stored then later freed. This causes a memory leak in existing callers that expect the value to be owned by libssl and thus freed whenever the SSL session is cleaned up. Is this the intended behaviour, it would be nice to update the documentation to describe the expected behaviour, and perhaps make the parameter const.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    branch: 3.6Applies to openssl-3.6branch: masterApplies to master branchseverity: regressionThe issue/pr is a regression from previous released versiontriaged: bugThe issue/pr is/fixes a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions