Skip to content

Commit

Permalink
[NETFILTER]: fix compat_nf_sockopt typo
Browse files Browse the repository at this point in the history
It should pass opt to the ->get/->set functions, not ops.

Tested-by: Luca Tettamanti <kronos.it@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 15, 2007
1 parent dab6ba3 commit 6452a5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/netfilter/nf_sockopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ static int compat_nf_sockopt(struct sock *sk, int pf, int val,
if (ops->compat_get)
ret = ops->compat_get(sk, val, opt, len);
else
ret = ops->get(sk, val, ops, len);
ret = ops->get(sk, val, opt, len);
} else {
if (ops->compat_set)
ret = ops->compat_set(sk, val, ops, *len);
ret = ops->compat_set(sk, val, opt, *len);
else
ret = ops->set(sk, val, ops, *len);
ret = ops->set(sk, val, opt, *len);
}

module_put(ops->owner);
Expand Down

0 comments on commit 6452a5f

Please sign in to comment.