From 0905202c4e365873f65ffc3c9bcbd6681645404d Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Mon, 29 Dec 2014 18:03:59 +0100 Subject: TN5250: Missing break in switch (CID 280477) fix also indent typo Change-Id: I47ff84a6062a203e14b9dde420a1a2efd5b05fab Reviewed-on: https://code.wireshark.org/review/6118 Reviewed-by: Michael Mann --- epan/dissectors/packet-tn5250.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/epan/dissectors/packet-tn5250.c b/epan/dissectors/packet-tn5250.c index b377aaca7d..b716d7c073 100644 --- a/epan/dissectors/packet-tn5250.c +++ b/epan/dissectors/packet-tn5250.c @@ -3027,7 +3027,7 @@ dissect_wcc(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset) { NULL, 0, 0, 0, 0 } }; - tn5250_add_hf_items(tn5250_tree, tvb, offset, wcc_fields); + tn5250_add_hf_items(tn5250_tree, tvb, offset, wcc_fields); return 2; @@ -3351,6 +3351,7 @@ dissect_create_window(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset) switch (minor_structure) { case CW_BORDER_PRESENTATION: offset += tn5250_add_hf_items(tn5250_tree, tvb, offset, cwbp_fields); + break; case CW_TITLE_FOOTER: length = tvb_get_guint8(tvb,offset); offset += tn5250_add_hf_items(tn5250_tree, tvb, offset, cw_tf_fields); @@ -3361,6 +3362,7 @@ dissect_create_window(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset) proto_tree_add_item(tn5250_tree, hf_tn5250_wdsf_cw_tf_text, tvb, offset, (length - 6), ENC_EBCDIC|ENC_NA); offset += (guint32)((length - 6)); + break; default: done = 1; break; -- cgit v1.2.3