From 8d3c7406c4cd7844858bd6bd73413c69337ebd70 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Thu, 23 Nov 2017 15:05:08 +0100 Subject: Use more the EXTRACT_U_1() macro to fetch a one-byte value (23/n) Reminder: EXTRACT_8BITS is now EXTRACT_U_1. In tok2str() calls (step 4). --- print-igmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'print-igmp.c') diff --git a/print-igmp.c b/print-igmp.c index 0bc56f08..2d9a580f 100644 --- a/print-igmp.c +++ b/print-igmp.c @@ -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)) { -- cgit v1.2.1