* [PATCH] ulogd: ulogd_inppkt_NFLOG: close nflog handle after unbinding
@ 2013-11-18 11:09 Chris Boot
2013-11-18 22:32 ` Eric Leblond
0 siblings, 1 reply; 2+ messages in thread
From: Chris Boot @ 2013-11-18 11:09 UTC (permalink / raw)
To: netfilter-devel; +Cc: Chris Boot
The nflog handle is closed, and then nflog_unbind_pf() is called on it, which
triggers an assertion failure within libnfnetlink. This patch simply moves
the nflog_close() just after the nflog_unbind_pf() calls.
Signed-off-by: Chris Boot <bootc@bootc.net>
---
The below information is included in the Debian patch file (Debian's DEP-3
patch tagging guidelines):
Author: Chris Boot <debian@bootc.net>
Bug: https://bugzilla.netfilter.org/show_bug.cgi?id=871
Bug-Debian: http://bugs.debian.org/729055
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1250520
Forwarded: https://bugzilla.netfilter.org/attachment.cgi?id=425
Last-Update: 2013-11-15
Regards,
Chris
--- ulogd2-2.0.2.orig/input/packet/ulogd_inppkt_NFLOG.c
+++ ulogd2-2.0.2/input/packet/ulogd_inppkt_NFLOG.c
@@ -618,12 +618,12 @@ static int start(struct ulogd_pluginstan
return 0;
out_bind:
- nflog_close(ui->nful_h);
if (group_ce(upi->config_kset).u.value == 0) {
nflog_unbind_pf(ui->nful_h, AF_INET);
nflog_unbind_pf(ui->nful_h, AF_INET6);
nflog_unbind_pf(ui->nful_h, AF_BRIDGE);
}
+ nflog_close(ui->nful_h);
out_handle:
free(ui->nfulog_buf);
out_buf:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ulogd: ulogd_inppkt_NFLOG: close nflog handle after unbinding
2013-11-18 11:09 [PATCH] ulogd: ulogd_inppkt_NFLOG: close nflog handle after unbinding Chris Boot
@ 2013-11-18 22:32 ` Eric Leblond
0 siblings, 0 replies; 2+ messages in thread
From: Eric Leblond @ 2013-11-18 22:32 UTC (permalink / raw)
To: Chris Boot; +Cc: netfilter-devel
Hello,
On Mon, 2013-11-18 at 11:09 +0000, Chris Boot wrote:
> The nflog handle is closed, and then nflog_unbind_pf() is called on it, which
> triggers an assertion failure within libnfnetlink. This patch simply moves
> the nflog_close() just after the nflog_unbind_pf() calls.
>
> Signed-off-by: Chris Boot <bootc@bootc.net>
Thanks a lot applied.
BR,
> ---
>
> The below information is included in the Debian patch file (Debian's DEP-3
> patch tagging guidelines):
>
> Author: Chris Boot <debian@bootc.net>
> Bug: https://bugzilla.netfilter.org/show_bug.cgi?id=871
> Bug-Debian: http://bugs.debian.org/729055
> Bug-Ubuntu: https://bugs.launchpad.net/bugs/1250520
> Forwarded: https://bugzilla.netfilter.org/attachment.cgi?id=425
> Last-Update: 2013-11-15
>
> Regards,
> Chris
>
> --- ulogd2-2.0.2.orig/input/packet/ulogd_inppkt_NFLOG.c
> +++ ulogd2-2.0.2/input/packet/ulogd_inppkt_NFLOG.c
> @@ -618,12 +618,12 @@ static int start(struct ulogd_pluginstan
> return 0;
>
> out_bind:
> - nflog_close(ui->nful_h);
> if (group_ce(upi->config_kset).u.value == 0) {
> nflog_unbind_pf(ui->nful_h, AF_INET);
> nflog_unbind_pf(ui->nful_h, AF_INET6);
> nflog_unbind_pf(ui->nful_h, AF_BRIDGE);
> }
> + nflog_close(ui->nful_h);
> out_handle:
> free(ui->nfulog_buf);
> out_buf:
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Eric Leblond <eric@regit.org>
Blog: https://home.regit.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-18 22:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-18 11:09 [PATCH] ulogd: ulogd_inppkt_NFLOG: close nflog handle after unbinding Chris Boot
2013-11-18 22:32 ` Eric Leblond
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).