diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-01-22 19:31:42 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-01-22 19:31:42 +0000 |
commit | 5cd3d3c5ae5dc712b54a34ceb97d4418f558e262 (patch) | |
tree | b0dbf078fa8e240c0cedf821bc9b2cf5880b611c /epan/reassemble.c | |
parent | 84eaed63448b1e81ba8c4acabe71fc92219e638a (diff) |
simply use DISSECTOR_ASSERT() to detect tvb problems instead of my previous commit
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17074 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/reassemble.c')
-rw-r--r-- | epan/reassemble.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/reassemble.c b/epan/reassemble.c index 6b93edae70..de0105e2a1 100644 --- a/epan/reassemble.c +++ b/epan/reassemble.c @@ -820,9 +820,7 @@ fragment_add_common(tvbuff_t *tvb, int offset, packet_info *pinfo, guint32 id, /* dissector shouldn't give us garbage tvb info */ - if(!tvb_bytes_exist(tvb, offset, frag_data_len)) { - THROW(DissectorError); - } + DISSECTOR_ASSERT(tvb_bytes_exist(tvb, offset, frag_data_len)); /* create key to search hash with */ key.src = pinfo->src; |