Skip to content

Commit

Permalink
netfilter: nf_nat: missing condition in nf_xfrm_me_harder()
Browse files Browse the repository at this point in the history
This if statement was accidentally dropped in (aaa795a netfilter:
nat: propagate errors from xfrm_me_harder()) so now it returns
unconditionally.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Dan Carpenter authored and Pablo Neira Ayuso committed Apr 24, 2013
1 parent 3856143 commit e7e6f63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/netfilter/nf_nat_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ int nf_xfrm_me_harder(struct sk_buff *skb, unsigned int family)
int err;

err = xfrm_decode_session(skb, &fl, family);
if (err < 0)
return err;

dst = skb_dst(skb);
Expand Down

0 comments on commit e7e6f63

Please sign in to comment.