From 8663becfe12801a4b5a96137a0db26a8871948a3 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 8 Dec 2008 11:07:51 +0100 Subject: netlink: unset ATTR_HELPER_NAME to avoid EBUSY in nl_update_conntrack() This patch unsets the ATTR_HELPER_NAME attributes, otherwise we hit EBUSY for related conntrack entries while resetting the timers. Signed-off: Pablo Neira Ayuso --- src/netlink.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/netlink.c') diff --git a/src/netlink.c b/src/netlink.c index 89c85d7..31cee61 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -239,6 +239,9 @@ int nl_update_conntrack(const struct nf_conntrack *orig) status &= ~IPS_NAT_MASK; nfct_set_attr_u32(ct, ATTR_STATUS, status); } + /* we have to unset the helper to avoid EBUSY in reset timers */ + if (nfct_attr_is_set(ct, ATTR_HELPER_NAME)) + nfct_attr_unset(ct, ATTR_HELPER_NAME); /* we hit error if we try to update the master conntrack */ if (ct_is_related(ct)) { -- cgit v1.2.3