mesh: Fix Replay Protection Cache 56/228956/1
authorBrian Gix <brian.gix@intel.com>
Mon, 23 Mar 2020 21:37:04 +0000 (14:37 -0700)
committerAnupam Roy <anupam.r@samsung.com>
Thu, 26 Mar 2020 10:38:11 +0000 (16:08 +0530)
There was a bug identified in the RPL storage, such that the real-time
queue was being filled by incorrect unicast addresses. (Thx ccsanden).

Change-Id: I4460f9506242208571a1ff6c1377e5ec2bb28c40
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/net.c

index a32c470..562138b 100644 (file)
@@ -3855,7 +3855,7 @@ void net_msg_add_replay_cache(struct mesh_net *net, uint16_t src, uint32_t seq,
        if (!rpe) {
                l_debug("New Entry for %4.4x", src);
                rpe = l_new(struct mesh_rpl, 1);
-               rpe->seq = src;
+               rpe->src = src;
        }
 
        rpe->seq = seq;