]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc50137f33675bb5bf58917d6b7ffb2a9c8965208
tree11662ce50b62a988d41f2100cd4c7fdd5b785141
parent0b36f2d9b89fb8b08f0ecd9f80a0261dca0e93fc
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