diff options
author | Guy Harris <gharris@sonic.net> | 2021-03-20 00:50:07 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-03-20 00:50:07 -0700 |
commit | 9f04392c0f2249ae21c51132eacd6a1c58e09f30 (patch) | |
tree | 90247f0be8da2543a7661d7c2fe9016dd84f62c9 /epan/dissectors/packet-frame.c | |
parent | 6ffbbcefa387377389eadfb31330092f511e3853 (diff) |
frame, tcp: don't g_assert while in the middle of dissecting.
Use DISSECTOR_ASSERT calls instead, so that *shark doesn't crash, it
just puts a complaint into the protocol tree.
Diffstat (limited to 'epan/dissectors/packet-frame.c')
-rw-r--r-- | epan/dissectors/packet-frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-frame.c b/epan/dissectors/packet-frame.c index df7d79ac3f..cdbe5617bc 100644 --- a/epan/dissectors/packet-frame.c +++ b/epan/dissectors/packet-frame.c @@ -386,7 +386,7 @@ dissect_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* break; default: - g_assert_not_reached(); + DISSECTOR_ASSERT_NOT_REACHED(); break; } |