summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/iputils/files/debian/CVE-2010-2529.diff
blob: 98aae0d457a92c2d139fe18f95b1f32cd86a20ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: trunk/ping.c
===================================================================
--- trunk.orig/ping.c	2010-07-23 21:26:53.000000000 -0700
+++ trunk/ping.c	2010-07-23 21:28:27.000000000 -0700
@@ -1059,7 +1059,7 @@
 				i = j;
 			i -= IPOPT_MINOFF;
 			if (i <= 0)
-				continue;
+				break;
 			if (i == old_rrlen
 			    && !strncmp((char *)cp, old_rr, i)
 			    && !(options & F_FLOOD)) {
@@ -1096,7 +1096,7 @@
 				i = j;
 			i -= 5;
 			if (i <= 0)
-				continue;
+				break;
 			flags = *++cp;
 			printf("\nTS: ");
 			cp++;