forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make PASE setup a bit more robust if multiple clients race. (project-…
…chip#25352) Without this change, we can end up in the following situation: 1) A PBKDFParamRequest comes in. We start a PASE handshake. 2) While we are in the middle of that, a PBKDFParamRequest from some other entity comes in on a different exchange. 3) Since we are not expecting PBKDFParamRequest, we not only respond with failure to the new message, but also cancel the exising handshake. So if two clients race to establish PASE, they can keep canceling each other and neither will complete. The fix is to stop listening for PBKDFParamRequest while we are in the middle of a handshake.
- Loading branch information
1 parent
db47dd8
commit c35b6d6
Showing
2 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters