Skip to content

Commit

Permalink
[NETFILTER]: nfnetlink_{queue,log}: return ENOTSUPP for unknown cfg c…
Browse files Browse the repository at this point in the history
…ommands

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 Jan 28, 2008
1 parent c050636 commit cd21f0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/netfilter/nfnetlink_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ nfulnl_recv_config(struct sock *ctnl, struct sk_buff *skb,
nf_log_unregister_pf(pf);
break;
default:
ret = -EINVAL;
ret = -ENOTSUPP;
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion net/netfilter/nfnetlink_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ nfqnl_recv_config(struct sock *ctnl, struct sk_buff *skb,
case NFQNL_CFG_CMD_PF_UNBIND:
break;
default:
ret = -EINVAL;
ret = -ENOTSUPP;
break;
}
}
Expand Down

0 comments on commit cd21f0a

Please sign in to comment.