aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-radius.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2017-03-09 19:20:37 +0100
committerPeter Wu <peter@lekensteyn.nl>2017-03-12 12:20:52 +0000
commite4b90a9451e0b13f842ce6c673c453dd944d9c84 (patch)
tree9e537d90f2072cd9bbc1f68ddbb7853a524172fd /epan/dissectors/packet-radius.c
parent6d584aad721515da570185e7f8e9e5a21540b0d3 (diff)
radius: fix this condition has identical branches [-Werror=duplicated-branches] found by gcc7
Change-Id: I654ead4d834af90e14568a54c7a914a3774c05bc Reviewed-on: https://code.wireshark.org/review/20470 Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'epan/dissectors/packet-radius.c')
-rw-r--r--epan/dissectors/packet-radius.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-radius.c b/epan/dissectors/packet-radius.c
index 1909ff43fd..0f1a4deb70 100644
--- a/epan/dissectors/packet-radius.c
+++ b/epan/dissectors/packet-radius.c
@@ -2303,9 +2303,11 @@ register_attrs(gpointer k _U_, gpointer v, gpointer p)
hfri[2].hfinfo.display = BASE_NONE;
len_hf++;
+#if 0 /* Fix -Wduplicated-branches */
} else if (a->type == radius_tlv) {
hfri[0].hfinfo.type = FT_BYTES;
hfri[0].hfinfo.display = BASE_NONE;
+#endif
} else {
hfri[0].hfinfo.type = FT_BYTES;
hfri[0].hfinfo.display = BASE_NONE;