]> The Tcpdump Group git mirrors - tcpdump/commitdiff
RSVP: add two missing breaks
authorDenis Ovsienko <[email protected]>
Fri, 21 Jul 2017 22:11:18 +0000 (23:11 +0100)
committerDenis Ovsienko <[email protected]>
Sat, 22 Jul 2017 18:35:06 +0000 (19:35 +0100)
Add a break at the end of the RSVP_OBJ_LABEL_SET case block as it fully
deals with class number 36 (LABEL_SET) from RFC 3473 Section 2.6 and is
not related to the class in next case block.

Add a break at the end of the RSVP_OBJ_S2L case block as it fully deals
with class number 50 (S2L_SUB_LSP) from RFC 4875 Section 19.3 and does
not need to fall through to the default case block.

print-rsvp.c

index be3dfa30b3626886dcc28166cf677e6563066536..2a04a0ce920c5468851c393dbc49ead051effa2a 100644 (file)
@@ -1768,6 +1768,7 @@ rsvp_obj_print(netdissect_options *ndo,
             default:
                 hexdump=TRUE;
             }
+            break;
 
         case RSVP_OBJ_S2L:
             switch (rsvp_obj_ctype) {
@@ -1792,6 +1793,7 @@ rsvp_obj_print(netdissect_options *ndo,
             default:
                 hexdump=TRUE;
             }
+            break;
 
         /*
          *  FIXME those are the defined objects that lack a decoder