tb buffer initialization is now done in the parser

(Logical change 1.129)
This commit is contained in:
7!tgraf 2005-01-18 22:11:58 +00:00
parent 43d9d2de04
commit 2af5c3d344

View File

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