Skip to contentSkip to conversation

tcp_metrics: dumb bug

DISCUSSION Stephen Hemminger 2 participants 2 messages Oct 30, 2012 – Oct 31, 2012

Subsystems (2)
lore
Share & tools
lore
maintainer
#1 lore raw

From: 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... :)