]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-msdp.c
Use more the EXTRACT_U_1() macro (40/n)
[tcpdump] / print-msdp.c
index 91416876454ab025c86dab8a440ea716ea81d2bf..59a0a092ff8ddf95ada47ad3525ce03e30d0548b 100644 (file)
@@ -60,7 +60,7 @@ msdp_print(netdissect_options *ndo, const u_char *sp, u_int length)
                        else
                                ND_PRINT((ndo, " SA-Response"));
                        ND_TCHECK(*sp);
-                       ND_PRINT((ndo, " %u entries", *sp));
+                       ND_PRINT((ndo, " %u entries", EXTRACT_U_1(sp)));
                        if ((u_int)((*sp * 12) + 8) < len) {
                                ND_PRINT((ndo, " [w/data]"));
                                if (ndo->ndo_vflag > 1) {