Re: [PATCH] iptables: Simplify xtables_parse_interface()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 2011-08-27 15:32, Richard Weinberger wrote:

>mask is already filled with zeros, there is no need to zero it again.
>diff --git a/iptables/xtables.c b/iptables/xtables.c
>index 233efa3..e72aa28 100644
>--- a/iptables/xtables.c
>+++ b/iptables/xtables.c
>@@ -515,15 +515,13 @@ void xtables_parse_interface(const char *arg, char *vianame,
> 
> 	strcpy(vianame, arg);
> 	if (vialen == 0)
>-		memset(mask, 0, IFNAMSIZ);
>+		return;
>...

Patch taken.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux