diff options
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/xfrm6_input.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/xfrm6_input.c b/net/ipv6/xfrm6_input.c index f835ab458f5b..6644fc6d5427 100644 --- a/net/ipv6/xfrm6_input.c +++ b/net/ipv6/xfrm6_input.c | |||
@@ -72,6 +72,7 @@ int xfrm6_input_addr(struct sk_buff *skb, xfrm_address_t *daddr, | |||
72 | 72 | ||
73 | sp = secpath_dup(skb->sp); | 73 | sp = secpath_dup(skb->sp); |
74 | if (!sp) { | 74 | if (!sp) { |
75 | XFRM_INC_STATS(LINUX_MIB_XFRMINERROR); | ||
75 | goto drop; | 76 | goto drop; |
76 | } | 77 | } |
77 | if (skb->sp) | 78 | if (skb->sp) |
@@ -80,6 +81,7 @@ int xfrm6_input_addr(struct sk_buff *skb, xfrm_address_t *daddr, | |||
80 | } | 81 | } |
81 | 82 | ||
82 | if (1 + skb->sp->len == XFRM_MAX_DEPTH) { | 83 | if (1 + skb->sp->len == XFRM_MAX_DEPTH) { |
84 | XFRM_INC_STATS(LINUX_MIB_XFRMINBUFFERERROR); | ||
83 | goto drop; | 85 | goto drop; |
84 | } | 86 | } |
85 | 87 | ||
@@ -149,6 +151,7 @@ int xfrm6_input_addr(struct sk_buff *skb, xfrm_address_t *daddr, | |||
149 | } | 151 | } |
150 | 152 | ||
151 | if (!x) { | 153 | if (!x) { |
154 | XFRM_INC_STATS(LINUX_MIB_XFRMINNOSTATES); | ||
152 | goto drop; | 155 | goto drop; |
153 | } | 156 | } |
154 | 157 | ||