Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app-layer-ssl: fix memleak #1932

Closed
wants to merge 1 commit into from
Closed

Conversation

thus
Copy link
Contributor

@thus thus commented Mar 14, 2016

Avoid that the SNI extension code is executed multiple times on malformed packets, causing memory leaks.

https://redmine.openinfosecfoundation.org/issues/1736

Avoid that the SNI extension code is executed twice sometimes, causing
memory leaks.
@thus thus mentioned this pull request Mar 14, 2016
if (ssl_state->curr_connp->sni) {
SCLogDebug("Multiple SNI extensions");
AppLayerDecoderEventsSetEvent(ssl_state->f,
TLS_DECODER_EVENT_INVALID_HANDSHAKE_MESSAGE);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any objections to making this more specific? ..._MULTIPLE_SNI

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No objections at all. I'll fix and submit a new PR.

@thus
Copy link
Contributor Author

thus commented Mar 15, 2016

Replaced by #1934

@thus thus closed this Mar 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants