diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-02 02:52:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:00:32 -0500 |
commit | dbb1db8b59fb84d620ab5266366b52c8052ee75c (patch) | |
tree | 3df775d08d9bf81494c184e2b6dc7390dbe0de54 | |
parent | 9a429c4983deae020f1e757ecc8f547b6d4e2f2b (diff) |
[IPSEC]: Return EOVERFLOW when output sequence number overflows
Previously we made it an error on the output path if the sequence number
overflowed. However we did not set the err variable accordingly. This
patch sets err to -EOVERFLOW in that case.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/xfrm/xfrm_output.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c index 81ad8eb2b283..f4a1047a5573 100644 --- a/net/xfrm/xfrm_output.c +++ b/net/xfrm/xfrm_output.c | |||
@@ -66,6 +66,7 @@ static int xfrm_output_one(struct sk_buff *skb, int err) | |||
66 | if (unlikely(x->replay.oseq == 0)) { | 66 | if (unlikely(x->replay.oseq == 0)) { |
67 | x->replay.oseq--; | 67 | x->replay.oseq--; |
68 | xfrm_audit_state_replay_overflow(x, skb); | 68 | xfrm_audit_state_replay_overflow(x, skb); |
69 | err = -EOVERFLOW; | ||
69 | goto error; | 70 | goto error; |
70 | } | 71 | } |
71 | if (xfrm_aevent_is_on()) | 72 | if (xfrm_aevent_is_on()) |