summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-08-29 04:15:45 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-08-29 04:15:45 +0200
commit88feb0c9f3a80161852ff7228bb656354f3aba54 (patch)
treeb3472103776d051ca88a74b418e1611739fba17a
parenta59cdb3ef307b546b6ced9d3c1be2f78196128d9 (diff)
downloadffd-88feb0c9f3a80161852ff7228bb656354f3aba54.tar
ffd-88feb0c9f3a80161852ff7228bb656354f3aba54.zip
Fix double sizeof
-rw-r--r--ffvisd/ffvisd.c2
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)