tb buffer initialization is now done in the parser
(Logical change 1.129)
This commit is contained in:
parent
07f9436201
commit
ebb4e4376a
|
|
@ -1305,7 +1305,6 @@ static void tcp_show_info(const struct nlmsghdr *nlh, struct tcpdiagmsg *r)
|
||||||
char b1[64];
|
char b1[64];
|
||||||
double rtt = 0;
|
double rtt = 0;
|
||||||
|
|
||||||
memset(tb, 0, sizeof(tb));
|
|
||||||
parse_rtattr(tb, TCPDIAG_MAX, (struct rtattr*)(r+1),
|
parse_rtattr(tb, TCPDIAG_MAX, (struct rtattr*)(r+1),
|
||||||
nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*r)));
|
nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*r)));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue