]> 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)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 20 Apr 2020 18:11:04 +0000 (20:11 +0200)
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.

(backported from commit f92b6812d0e114960225f187a8788be137ce587b)

print-rsvp.c

index 438761ea36108caf0279b188e4688042cdd44db0..72f7ddbc9e0eae2f26bd5ebdadcf402a4e000dc5 100644 (file)
@@ -1788,6 +1788,7 @@ rsvp_obj_print(netdissect_options *ndo,
             default:
                 hexdump=TRUE;
             }
+            break;
 
         case RSVP_OBJ_S2L:
             switch (rsvp_obj_ctype) {
@@ -1812,6 +1813,7 @@ rsvp_obj_print(netdissect_options *ndo,
             default:
                 hexdump=TRUE;
             }
+            break;
 
         /*
          *  FIXME those are the defined objects that lack a decoder