forked from osmocom/wireshark
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.
This commit is contained in:
parent
6ffbbcefa3
commit
9f04392c0f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -5960,7 +5960,7 @@ tcp_dissect_options(tvbuff_t *tvb, int offset, guint length, int eol,
|
|||
nop_count = 0;
|
||||
}
|
||||
} else {
|
||||
g_assert_not_reached();
|
||||
DISSECTOR_ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
field_item = proto_tree_add_item(opt_tree, local_proto, tvb, offset, 1, ENC_NA);
|
||||
|
|
Loading…
Reference in New Issue