Re: [PATCH] conntrackd: don't resync expectations if such sync has been disabled

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

 



On Thu, Aug 02, 2012 at 05:33:56PM +0200, Vincent Bernat wrote:
> conntrackd was segfaulting with `ExpectationSync` set to `Off`.
> 
> Signed-off-by: Vincent Bernat <bernat@xxxxxxxx>
> ---
>  src/ctnl.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/ctnl.c b/src/ctnl.c
> index 107cd5d..154b612 100644
> --- a/src/ctnl.c
> +++ b/src/ctnl.c
> @@ -164,7 +164,7 @@ static void do_polling_alarm(struct alarm_block *a, void *data)
>  		STATE(mode)->internal->exp.purge();
>  
>  	nl_send_resync(STATE(resync));
> -	nl_send_expect_resync(STATE(resync));
> +	if (CONFIG(flags) & CTD_EXPECT) nl_send_expect_resync(STATE(resync));

Applied (with little change to fix coding style).

Thanks Vincent.
--
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