summaryrefslogtreecommitdiff
path: root/epan/packet.c
diff options
context:
space:
mode:
authorMike Duigou <bondolo@dev.java.net>2007-09-19 16:34:06 +0000
committerMike Duigou <bondolo@dev.java.net>2007-09-19 16:34:06 +0000
commitf6b771c4675448418fd82dcc6c85040522226c6a (patch)
tree33890756be942633a925ddbee254a2589efc8b2e /epan/packet.c
parentc50311cdc61e8af245b1dfc5386f28b8bc2c4741 (diff)
downloadwireshark-f6b771c4675448418fd82dcc6c85040522226c6a.tar.gz
call_dissector() provides generic 'data' handler for unrecognized data types. call_dissector_only() fails gracefully for unrecognized types. The handler for generic 'data' should avoid the variant that potentially could result in recursively calling itself.
svn path=/trunk/; revision=22907
Diffstat (limited to 'epan/packet.c')
-rw-r--r--epan/packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/packet.c b/epan/packet.c
index 7960a35ed6..5627a79efd 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -1755,7 +1755,7 @@ call_dissector(dissector_handle_t handle, tvbuff_t *tvb,
*/
g_assert(data_handle != NULL);
g_assert(data_handle->protocol != NULL);
- call_dissector(data_handle, tvb, pinfo, tree);
+ call_dissector_only(data_handle, tvb, pinfo, tree);
return tvb_length(tvb);
}
return ret;