Fix double sizeof

This commit is contained in:
Matthias Schiffer 2012-08-29 04:15:45 +02:00
parent a59cdb3ef3
commit 88feb0c9f3

View file

@ -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)