tcp_metrics: dumb bug
Subsystems (2)
https://bugzilla.kernel.org/show_bug.cgi?id=49171
Description From David Binderman 2012-10-21 10:31:05 (-) [reply] The source code is
if (nla_len(a) != sizeof(sizeof(struct in6_addr)))
I'm surprised that compiles. Suggest remove one of the sizeofs.
David Miller
maintainerFrom: Stephen Hemminger <[email protected]>
Date: Tue, 30 Oct 2012 08:59:20 -0700
Quoted 8 lines
https://bugzilla.kernel.org/show_bug.cgi?id=49171
Description From David Binderman 2012-10-21 10:31:05 (-) [reply] The source code is
if (nla_len(a) != sizeof(sizeof(struct in6_addr)))I'm surprised that compiles. Suggest remove one of the sizeofs.
sizeof() resolves to a size_t value so... :)