Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 307d93e28d6b444166d3d9b5e9cbb1c0 > files > 2

tcpdump-3.8.3-2.2.102mdk.src.rpm

--- tcpdump-3.8.2/print-bgp.c.old	2004-03-24 01:01:00.000000000 +0100
+++ tcpdump-3.8.2/print-bgp.c	2005-04-28 12:47:12.000000000 +0200
@@ -1089,7 +1089,7 @@
 			printf(", no SNPA");
                 }
 
-		while (len - (tptr - pptr) > 0) {
+		while ((tptr - pptr) > 0 &&  len - (tptr - pptr) > 0) {
 			switch (af) {
 			case AFNUM_INET:
                             switch (safi) {