[mle] avoid overwriting parent candidate during child ID request phase (#11953)

This commit is contained in:
Tom Rebbert
2025-09-19 15:35:26 -07:00
committed by GitHub
parent 02af421a42
commit da61dc7eba
+2
View File
@@ -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));