aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/cipso_ipv4.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/cipso_ipv4.h b/include/net/cipso_ipv4.h
index 2179d071f68f..a6fd939f202d 100644
--- a/include/net/cipso_ipv4.h
+++ b/include/net/cipso_ipv4.h
@@ -303,7 +303,7 @@ static inline int cipso_v4_validate(const struct sk_buff *skb,
303 303
304 for (opt_iter = 6; opt_iter < opt_len;) { 304 for (opt_iter = 6; opt_iter < opt_len;) {
305 tag_len = opt[opt_iter + 1]; 305 tag_len = opt[opt_iter + 1];
306 if ((tag_len == 0) || (opt[opt_iter + 1] > (opt_len - opt_iter))) { 306 if ((tag_len == 0) || (tag_len > (opt_len - opt_iter))) {
307 err_offset = opt_iter + 1; 307 err_offset = opt_iter + 1;
308 goto out; 308 goto out;
309 } 309 }