parent
9c5c1090d1
commit
0c3e5a710b
|
|
@ -77,7 +77,7 @@ static int addattr32(struct nlmsghdr *n, size_t maxlen, int type, __u32 data)
|
||||||
|
|
||||||
if (NLMSG_ALIGN(n->nlmsg_len) + len > maxlen) {
|
if (NLMSG_ALIGN(n->nlmsg_len) + len > maxlen) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"addattr32: Error! max allowed bound %lu exceeded\n",
|
"addattr32: Error! max allowed bound %zu exceeded\n",
|
||||||
maxlen);
|
maxlen);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
@ -99,7 +99,7 @@ static int addattr_l(struct nlmsghdr *n, size_t maxlen, int type,
|
||||||
|
|
||||||
if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) {
|
if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"addattr_l ERROR: message exceeded bound of %lu\n",
|
"addattr_l ERROR: message exceeded bound of %zu\n",
|
||||||
maxlen);
|
maxlen);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue