Fix double sizeof
This commit is contained in:
parent
a59cdb3ef3
commit
88feb0c9f3
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue