From: Nicolas Dichtel Date: Tue, 9 Sep 2014 14:55:11 +0000 (+0200) Subject: ip/vxlan: fix display of maxaddress option X-Git-Tag: v3.17.0~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ad5399c3ab72306e009a5e621f9f54c625413a7;p=thirdparty%2Fiproute2.git ip/vxlan: fix display of maxaddress option Parenthesis are required else maxaddr value is a bool and thus output is always 1 when the option is set. Signed-off-by: Nicolas Dichtel --- diff --git a/ip/iplink_vxlan.c b/ip/iplink_vxlan.c index 8aa25cd5f..d92cfe815 100644 --- a/ip/iplink_vxlan.c +++ b/ip/iplink_vxlan.c @@ -361,7 +361,7 @@ static void vxlan_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]) } if (tb[IFLA_VXLAN_LIMIT] && - (maxaddr = rta_getattr_u32(tb[IFLA_VXLAN_LIMIT]) != 0)) + ((maxaddr = rta_getattr_u32(tb[IFLA_VXLAN_LIMIT])) != 0)) fprintf(f, "maxaddr %u ", maxaddr); }