diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-04-19 23:38:55 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-04-19 23:38:55 +0000 |
commit | c10087d7f4a907364c1a41be9038e5ea10e8096c (patch) | |
tree | 9ca87d6d2fb485a242943ad972cee5ed8c9d3d86 /epan/dissectors | |
parent | b4eaaf4aff1d42b28ad33f05672fb27df8eb8bfe (diff) |
If that should truly "never happen", use DISSECTOR_ASSERT_NOT_REACHED()
so it's more clearly marked as a dissector bug.
(It apparently *does* happen - see bug 4698.)
svn path=/trunk/; revision=32519
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-rsvp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-rsvp.c b/epan/dissectors/packet-rsvp.c index df0723c381..e2c837ef26 100644 --- a/epan/dissectors/packet-rsvp.c +++ b/epan/dissectors/packet-rsvp.c @@ -5874,9 +5874,7 @@ dissect_rsvp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) break; default: /* This should never happen. */ - if (tree) { - proto_tree_add_text(tree, tvb, 0, 0, "Unknown session type"); - } + DISSECTOR_ASSERT_NOT_REACHED(); break; } |