]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-igmp.c
Use more the EXTRACT_U_1() macro to fetch a one-byte value (23/n)
[tcpdump] / print-igmp.c
index 0bc56f08d5c3e0c93b472cb8f028200777654441..2d9a580f3407dfbba6c63c7fba7bb5688680c968 100644 (file)
@@ -172,7 +172,7 @@ print_igmpv3_report(netdissect_options *ndo,
            ND_TCHECK2(bp[group+4], 4);
             ND_PRINT((ndo, " [gaddr %s", ipaddr_string(ndo, &bp[group+4])));
            ND_PRINT((ndo, " %s", tok2str(igmpv3report2str, " [v3-report-#%d]",
-                                                               bp[group])));
+                                                               EXTRACT_U_1(bp + group))));
             nsrcs = EXTRACT_BE_U_2(bp + group + 2);
            /* Check the number of sources and print them */
            if (len < group+8+(nsrcs<<2)) {