]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Set frpcnt to the right value.
authorfenner <fenner>
Thu, 17 Aug 2000 18:38:24 +0000 (18:38 +0000)
committerfenner <fenner>
Thu, 17 Aug 2000 18:38:24 +0000 (18:38 +0000)
Submitted by: Ravi Puvvala <[email protected]>

print-pim.c

index d9126e861a8ea5eaf176ff644f8da6b5e26fa7fc..ab869dc4e6e2938c431bf61e93cefd59cb1ace01 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-pim.c,v 1.19 2000-04-24 12:59:39 itojun Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-pim.c,v 1.20 2000-08-17 18:38:24 fenner Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -799,12 +799,12 @@ pimv2_print(register const u_char *bp, register u_int len)
                                (void)printf("...)");
                                goto bs_done;
                        }
-                       (void)printf(" RPcnt=%d", frpcnt = bp[0]);
+                       (void)printf(" RPcnt=%d", bp[0]);
                        if (bp + 1 >= ep) {
                                (void)printf("...)");
                                goto bs_done;
                        }
-                       (void)printf(" FRPcnt=%d", bp[1]);
+                       (void)printf(" FRPcnt=%d", frpcnt = bp[1]);
                        bp += 4;
 
                        for (j = 0; j < frpcnt && bp < ep; j++) {