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
dnsdist: Release memory on DNS over TLS handshake failure #7060
Conversation
We should really use smart pointers there, although |
pdns/dnsdistdist/tcpiohandler.cc
Outdated
try { | ||
handleIORequest(res, timeout); | ||
} | ||
catch(const std::exception&) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe this should catch (...)
instead, to also get PDNSExceptions
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Short description
Otherwise we leak the memory allocated to handle the
TLS
connection if the handshake doesn't succeed correctly.Checklist
I have: