netfilter: cttimeout: put back l4proto when replacing timeout policy
authorLiping Zhang <liping.zhang@spreadtrum.com>
Mon, 22 Aug 2016 13:58:17 +0000 (21:58 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 25 Aug 2016 11:11:16 +0000 (13:11 +0200)
commit23aaba5ad55547db62bada5066c8fb6412d5b1c2
tree400a3eb5315717d2b69af80af7b8f9ff0c668dd5
parent93fac10b99d78eb2c50a739cba2e590c7332d539
netfilter: cttimeout: put back l4proto when replacing timeout policy

We forget to call nf_ct_l4proto_put when replacing the existing
timeout policy. Acctually, there's no need to get ct l4proto
before doing replace, so we can move it to a later position.

Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_cttimeout.c