netfilter: xt_CT: fix error value in xt_ct_tg_check()
authorEric Leblond <eric@regit.org>
Thu, 2 Jan 2014 09:03:45 +0000 (10:03 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 3 Jan 2014 22:41:39 +0000 (23:41 +0100)
commit14abfa161d256c60f3ea6ba494704ac634b94f63
tree11662ce50b62a988d41f2100cd4c7fdd5b785141
parentdcd93ed4cd1669b2c1510e801fe5f1132390761c
netfilter: xt_CT: fix error value in xt_ct_tg_check()

If setting event mask fails then we were returning 0 for success.
This patch updates return code to -EINVAL in case of problem.

Signed-off-by: Eric Leblond <eric@regit.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_CT.c