From: Denis Ovsienko Date: Fri, 21 Jul 2017 22:11:18 +0000 (+0100) Subject: RSVP: add two missing breaks X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/d1e53f54ffc2f11f2c26f09e3e72969737fe1894 RSVP: add two missing breaks 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) --- diff --git a/print-rsvp.c b/print-rsvp.c index 438761ea..72f7ddbc 100644 --- a/print-rsvp.c +++ b/print-rsvp.c @@ -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