mirror of
https://github.com/espressif/openthread.git
synced 2026-08-16 15:47:46 +00:00
[mle] avoid overwriting parent candidate during child ID request phase (#11953)
This commit is contained in:
@@ -5085,6 +5085,8 @@ void Mle::Attacher::HandleParentResponse(RxInfo &aRxInfo)
|
||||
|
||||
Log(kMessageReceive, kTypeParentResponse, aRxInfo.mMessageInfo.GetPeerAddr(), sourceAddress);
|
||||
|
||||
VerifyOrExit(mState != kStateChildIdRequest, error = kErrorInvalidState);
|
||||
|
||||
SuccessOrExit(error = aRxInfo.mMessage.ReadVersionTlv(version));
|
||||
|
||||
SuccessOrExit(error = aRxInfo.mMessage.ReadAndMatchResponseTlvWith(mParentRequestChallenge));
|
||||
|
||||
Reference in New Issue
Block a user