From 6f169e97026feabbbe25eb345c41c19afa1eccb8 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Mon, 6 Feb 2017 18:35:48 -0800 Subject: [PATCH] `mle`: Set `mRetrieveNewNetworkData` to `true` when LeaderData is updated (#1265) This change ensures that the flag `mRetrieveNewNetworkData` is set to `true` when the `LeaderData` is updated to accept the next received network data without version check. This addresses an issue where after updating the `mLeaderData` (e.g., from a "ChildUpdateResponse" message not containing the active dataset), and requesting (from `SendDataRequest()`) and receiving the network data, `mRetrieveNewNetworkData` could remain `false` and cause the network data not to be updated locally. --- src/core/thread/mle.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/thread/mle.cpp b/src/core/thread/mle.cpp index ff2b673d2..f8d0a7511 100644 --- a/src/core/thread/mle.cpp +++ b/src/core/thread/mle.cpp @@ -2218,6 +2218,7 @@ ThreadError Mle::HandleLeaderData(const Message &aMessage, const Ip6::MessageInf if (mDeviceState == kDeviceStateChild) { SetLeaderData(leaderData.GetPartitionId(), leaderData.GetWeighting(), leaderData.GetLeaderRouterId()); + mRetrieveNewNetworkData = true; } else {