Skip to content

Commit

Permalink
Clear PASESession state before initializing it (#4567)
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-apple authored Jan 29, 2021
1 parent 43e5ae6 commit 4c56ede
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/transport/PASESession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ CHIP_ERROR PASESession::Init(Optional<NodeId> myNodeId, uint16_t myKeyId, uint32

VerifyOrExit(delegate != nullptr, err = CHIP_ERROR_INVALID_ARGUMENT);

// Reset any state maintained by PASESession object (in case it's being reused for pairing)
Clear();

err = mCommissioningHash.Begin();
SuccessOrExit(err);

Expand Down

0 comments on commit 4c56ede

Please sign in to comment.