Commit 2a6c53fe authored by Geoff Simmons's avatar Geoff Simmons

Bugfix the key mockup (revealed by clang).

parent c8049b6d
......@@ -65,7 +65,7 @@ static struct key {
static inline uint8_t *
get_key(uint8_t *id, uint8_t idlen)
{
for (int i = 0; key[i].key != NULL; i++)
for (int i = 0; key[i].id != NULL; i++)
if (idlen != key[i].idlen)
continue;
else if (idlen == 0 && key[i].idlen == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment