diff options
-rw-r--r-- | net/netfilter/nf_conntrack_netlink.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c index bd0156a28ecd..77a46eef66c1 100644 --- a/net/netfilter/nf_conntrack_netlink.c +++ b/net/netfilter/nf_conntrack_netlink.c | |||
@@ -949,6 +949,7 @@ ctnetlink_create_conntrack(struct nfattr *cda[], | |||
949 | { | 949 | { |
950 | struct nf_conn *ct; | 950 | struct nf_conn *ct; |
951 | int err = -EINVAL; | 951 | int err = -EINVAL; |
952 | struct nf_conn_help *help; | ||
952 | 953 | ||
953 | ct = nf_conntrack_alloc(otuple, rtuple); | 954 | ct = nf_conntrack_alloc(otuple, rtuple); |
954 | if (ct == NULL || IS_ERR(ct)) | 955 | if (ct == NULL || IS_ERR(ct)) |
@@ -976,9 +977,16 @@ ctnetlink_create_conntrack(struct nfattr *cda[], | |||
976 | ct->mark = ntohl(*(u_int32_t *)NFA_DATA(cda[CTA_MARK-1])); | 977 | ct->mark = ntohl(*(u_int32_t *)NFA_DATA(cda[CTA_MARK-1])); |
977 | #endif | 978 | #endif |
978 | 979 | ||
980 | help = nfct_help(ct); | ||
981 | if (help) | ||
982 | help->helper = nf_ct_helper_find_get(rtuple); | ||
983 | |||
979 | add_timer(&ct->timeout); | 984 | add_timer(&ct->timeout); |
980 | nf_conntrack_hash_insert(ct); | 985 | nf_conntrack_hash_insert(ct); |
981 | 986 | ||
987 | if (help && help->helper) | ||
988 | nf_ct_helper_put(help->helper); | ||
989 | |||
982 | return 0; | 990 | return 0; |
983 | 991 | ||
984 | err: | 992 | err: |