diff options
author | Nick Bowler <nbowler@elliptictech.com> | 2011-11-10 04:01:27 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-12 18:13:32 -0500 |
commit | 4b90a603a1b21d63cf743cc833680cb195a729f6 (patch) | |
tree | 5ac1ffcfd7208796967f4d9387d831c1d9e54ace /net/ipv4/ah4.c | |
parent | 1e49570171117e547e6324c58371db4a0dc2f1db (diff) |
ah: Don't return NET_XMIT_DROP on input.
When the ahash driver returns -EBUSY, AH4/6 input functions return
NET_XMIT_DROP, presumably copied from the output code path. But
returning transmit codes on input doesn't make a lot of sense.
Since NET_XMIT_DROP is a positive int, this gets interpreted as
the next header type (i.e., success). As that can only end badly,
remove the check.
Signed-off-by: Nick Bowler <nbowler@elliptictech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ah4.c')
-rw-r--r-- | net/ipv4/ah4.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv4/ah4.c b/net/ipv4/ah4.c index c7056b2e831f..36d14406261e 100644 --- a/net/ipv4/ah4.c +++ b/net/ipv4/ah4.c | |||
@@ -369,8 +369,6 @@ static int ah_input(struct xfrm_state *x, struct sk_buff *skb) | |||
369 | if (err == -EINPROGRESS) | 369 | if (err == -EINPROGRESS) |
370 | goto out; | 370 | goto out; |
371 | 371 | ||
372 | if (err == -EBUSY) | ||
373 | err = NET_XMIT_DROP; | ||
374 | goto out_free; | 372 | goto out_free; |
375 | } | 373 | } |
376 | 374 | ||