-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Don't Clear mSecureSessionType on PairingSession::Clear() #13772
Don't Clear mSecureSessionType on PairingSession::Clear() #13772
Conversation
8f4877e
to
15e5ea3
Compare
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.
I do think this change should fix the issue, but please see the comment for a suggested tweak.
PR #13772: Size comparison from fa0b36f to 15e5ea3 Decreases (3 builds for efr32, p6, telink)
Full report (14 builds for efr32, k32w, linux, p6, qpg, telink)
|
Co-authored-by: Marc Lepage <[email protected]>
PR #13772: Size comparison from fa0b36f to ecb7832 Increases (24 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
Full report (29 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
fast track: small delta, several checkmars, PR has been up for sufficient time for cross timezone review. |
…ip#13772) * Don't Clear mSecureSessionType on PairingSession::Clear() * Update src/transport/PairingSession.h Co-authored-by: Marc Lepage <[email protected]> * Made mSecureSessionType const and initialize it from an arg to the constructor. * cleanup Co-authored-by: Marc Lepage <[email protected]>
Problem
#13711
Change overview
There is no need to clear the session type because it doesn't change.
I believe the more appropriate fix will be implemented with #9059. The Clear() method is not needed and a new session instance should be allocated and the old one released when required.
Testing
existing tests