Re: [nftables PATCH] Fix segmentation fault in batch operation

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

 



On 4 July 2014 13:59, Yanchuan Nian <ycnian@xxxxxxxxx> wrote:
[...]
> diff --git a/src/mnl.c b/src/mnl.c
> index a816106..c934e57 100644
> --- a/src/mnl.c
> +++ b/src/mnl.c
> @@ -89,7 +89,7 @@ static struct mnl_nlmsg_batch *mnl_batch_alloc(void)
>         static char *buf;
>
>         /* libmnl needs higher buffer to handle batch overflows */
> -       buf = xmalloc(BATCH_PAGE_SIZE + getpagesize());
> +       buf = xzalloc(BATCH_PAGE_SIZE + getpagesize());
>         return mnl_nlmsg_batch_start(buf, BATCH_PAGE_SIZE);
>  }
>

Good one Yanchuan. Thanks.

Tested-by: Arturo Borrero Gonzalez <arturo.borrero.glez@xxxxxxxxx>
-- 
Arturo Borrero González
--
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