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>
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: