Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SslHandler.wrap(...) must ensure it not loose the original exception …
…when finishWrap(...) fails (netty#9974) Motivation: When SslHandler.finishWrap throws an exception, ensure that the promise and buf is not reused to avoid throwing IllegalArgumentException or IllegalReferenceCountException which causes the original exception to be lost. Modification: The change ensures that the values for the promise and bytebuf are nulled before calling finishWrap so that it will not be called again with the same arguments. Result: Fixes netty#9971 . Co-authored-by: Norman Maurer <[email protected]> Co-authored-by: Antony T Curtis <[email protected]>
- Loading branch information