aboutsummaryrefslogtreecommitdiffstats
path: root/epan/conversation.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-11-18 07:00:31 +0000
committerGuy Harris <guy@alum.mit.edu>2000-11-18 07:00:31 +0000
commit67f0e0b41b0320342bfadccba68a0878a4911caa (patch)
tree0afe9d84c6e6d1cc79fd8db740a9f839fed9f75a /epan/conversation.c
parent69ebb146e892e8ecce825dac0ee45b65d858f4d9 (diff)
Do the checks for the presence of a conversation dissector the same way
in "try_conversation_dissector()" that they're done in "old_try_conversation_dissector()". svn path=/trunk/; revision=2656
Diffstat (limited to 'epan/conversation.c')
-rw-r--r--epan/conversation.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/epan/conversation.c b/epan/conversation.c
index 9757653e50..6d0b29ad90 100644
--- a/epan/conversation.c
+++ b/epan/conversation.c
@@ -1,7 +1,7 @@
/* conversation.c
* Routines for building lists of packets that are part of a "conversation"
*
- * $Id: conversation.c,v 1.4 2000/11/18 06:51:42 guy Exp $
+ * $Id: conversation.c,v 1.5 2000/11/18 07:00:31 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -762,6 +762,9 @@ try_conversation_dissector(address *src, address *dst, port_type ptype,
if (conversation != NULL) {
if (conversation->is_old_dissector) {
+ if (conversation->dissector.old_d == NULL)
+ return FALSE;
+
/*
* New dissector calling old dissector; use
* "tvb_compat()" to remap.
@@ -773,18 +776,11 @@ try_conversation_dissector(address *src, address *dst, port_type ptype,
(*conversation->dissector.old_d)(pd, offset, pinfo->fd,
tree);
} else {
- /*
- * Do we have a conversation dissector?
- */
- if (conversation->dissector.new_d == NULL) {
- /*
- * No, so we can't call it.
- */
+ if (conversation->dissector.new_d == NULL)
return FALSE;
- }
(*conversation->dissector.new_d)(tvb, pinfo, tree);
- return TRUE;
}
+ return TRUE;
}
return FALSE;
}