netfilter: restore POST_ROUTING hook in NF_HOOK_COND
authorPatrick McHardy <kaber@trash.net>
Fri, 19 Feb 2010 07:03:28 +0000 (08:03 +0100)
committerPatrick McHardy <kaber@trash.net>
Fri, 19 Feb 2010 07:03:28 +0000 (08:03 +0100)
commit4bac6b180771f7ef5275b1a6d88e630ca3a3d6f0
tree3a528ddf792daea358d00d20e1065b6ed5bab30c
parent37ee3d5b3e979a168536e7e2f15bd1e769cb4122
netfilter: restore POST_ROUTING hook in NF_HOOK_COND

Commit 2249065 ("netfilter: get rid of the grossness in netfilter.h")
inverted the logic for conditional hook invocation, breaking the
POST_ROUTING hook invoked by ip_output().

Correct the logic and remove an unnecessary initialization.

Reported-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter.h