diff options
author | Isak Westin <isak.westin@loytec.com> | 2022-10-04 10:25:28 +0200 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2022-10-06 13:34:20 -0700 |
commit | 7ff3e10d92bac299f541d365057f422d0282e483 (patch) | |
tree | 09c41f2b0351ef96770bc3b9d799abda1e5ccf93 /mesh | |
parent | e9a8e884109c1fb3ee075115cb28312dd2716669 (diff) | |
download | bluez-7ff3e10d92bac299f541d365057f422d0282e483.tar.gz |
mesh: Verify padding bits in Friend Poll messages
The padding bits in a Friend Poll message must be zero.
See MshPRFv1.0.1 section 3.6.5.1.
Diffstat (limited to 'mesh')
-rw-r--r-- | mesh/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesh/net.c b/mesh/net.c index 379a6e250..a8a527c2f 100644 --- a/mesh/net.c +++ b/mesh/net.c @@ -2059,7 +2059,7 @@ static bool ctl_received(struct mesh_net *net, uint32_t net_key_id, break; case NET_OP_FRND_POLL: - if (len != 1 || ttl) + if (len != 1 || ttl || pkt[0] > 1) return false; print_packet("Rx-NET_OP_FRND_POLL", pkt, len); |