Diff between ddec3358fe5cd991c4da89b35dbfff0058b0434a and 009cfb5188f8287819cb73ae4910dc55b659e41c
Changed Files
| File | Additions | Deletions | Status |
| mesh/net-keys.c | +2 | -2 | modified |
Full Patch
diff --git a/mesh/net-keys.c b/mesh/net-keys.c
index a10f93c..22ab5b6 100644
--- a/mesh/net-keys.c
+++ b/mesh/net-keys.c
@@ -442,10 +442,10 @@ static bool match_beacon(const void *a, const void *b)
const uint8_t *incoming = b;
if (incoming[0] == BEACON_TYPE_MPB)
- return !memcmp(cached->data, incoming, 27);
+ return !memcmp(cached->data, incoming, BEACON_LEN_MPB - 1);
if (incoming[0] == BEACON_TYPE_SNB)
- return !memcmp(cached->data, incoming, 22);
+ return !memcmp(cached->data, incoming, BEACON_LEN_SNB - 1);
return false;
}