mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-16 14:35:34 +08:00
tb buffer initialization is now done in the parser
(Logical change 1.129)
This commit is contained in:
parent
43d9d2de04
commit
2af5c3d344
@ -60,7 +60,6 @@ static int print_rule(const struct sockaddr_nl *who, struct nlmsghdr *n,
|
||||
if (len < 0)
|
||||
return -1;
|
||||
|
||||
memset(tb, 0, sizeof(tb));
|
||||
parse_rtattr(tb, RTA_MAX, RTM_RTA(r), len);
|
||||
|
||||
if (r->rtm_family == AF_INET)
|
||||
@ -316,7 +315,6 @@ static int flush_rule(const struct sockaddr_nl *who, struct nlmsghdr *n, void *a
|
||||
if (len < 0)
|
||||
return -1;
|
||||
|
||||
memset(tb, 0, sizeof(tb));
|
||||
parse_rtattr(tb, RTA_MAX, RTM_RTA(r), len);
|
||||
|
||||
if (tb[RTA_PRIORITY]) {
|
||||
|
Loading…
Reference in New Issue
Block a user