Skip to content

Commit

Permalink
netfilter: xt_osf: fix xt_osf_remove_callback() return value
Browse files Browse the repository at this point in the history
Return a negative error value.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Nov 19, 2009
1 parent 2b1c8b0 commit d667b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/xt_osf.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ static int xt_osf_remove_callback(struct sock *ctnl, struct sk_buff *skb,
{
struct xt_osf_user_finger *f;
struct xt_osf_finger *sf;
int err = ENOENT;
int err = -ENOENT;

if (!osf_attrs[OSF_ATTR_FINGER])
return -EINVAL;
Expand Down

0 comments on commit d667b9c

Please sign in to comment.