]> The Tcpdump Group git mirrors - tcpdump/commitdiff
rsvp: fetch a 32-bit quantity into a 32-bit variable.
authorGuy Harris <[email protected]>
Mon, 25 May 2020 10:47:14 +0000 (03:47 -0700)
committerGuy Harris <[email protected]>
Mon, 25 May 2020 10:47:14 +0000 (03:47 -0700)
print-rsvp.c

index d93cb6b79287d8d6d794758d0e6ed73527d38951..873559321ee70162218422e4acbcfb27af46886d 100644 (file)
@@ -1193,7 +1193,7 @@ rsvp_obj_print(netdissect_options *ndo,
             case RSVP_CTYPE_1:
                 if (obj_tlen < 4)
                     return-1;
             case RSVP_CTYPE_1:
                 if (obj_tlen < 4)
                     return-1;
-                uint8_t unused_and_flags = GET_BE_U_4(obj_tptr);
+                uint32_t unused_and_flags = GET_BE_U_4(obj_tptr);
                 if (unused_and_flags & ~RSVP_OBJ_CAPABILITY_FLAGS_MASK)
                     ND_PRINT("%s  [reserved=0x%08x must be zero]", indent,
                         unused_and_flags & ~RSVP_OBJ_CAPABILITY_FLAGS_MASK);
                 if (unused_and_flags & ~RSVP_OBJ_CAPABILITY_FLAGS_MASK)
                     ND_PRINT("%s  [reserved=0x%08x must be zero]", indent,
                         unused_and_flags & ~RSVP_OBJ_CAPABILITY_FLAGS_MASK);