diff options
-rw-r--r-- | ffvisd/ffvisd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ffvisd/ffvisd.c b/ffvisd/ffvisd.c index 91f6764..fab2f39 100644 --- a/ffvisd/ffvisd.c +++ b/ffvisd/ffvisd.c @@ -232,7 +232,7 @@ static struct in6_addr* iface_get_address(ffvisd_iface_t *iface, int scope) { struct msg *chunk; - for (chunk = &msg; readlen > sizeof(sizeof(struct nlmsghdr));) { + for (chunk = &msg; readlen > sizeof(struct nlmsghdr);) { int len = chunk->nh.nlmsg_len - sizeof(struct nlmsghdr); if (len < sizeof(struct ifaddrmsg) || readlen < len) |