From 88feb0c9f3a80161852ff7228bb656354f3aba54 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 29 Aug 2012 04:15:45 +0200 Subject: Fix double sizeof --- ffvisd/ffvisd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3