aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tcap-persistentdata.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2007-07-30 17:10:20 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2007-07-30 17:10:20 +0000
commit7c4cca3e63903940fc98f3f967159fe0453e2590 (patch)
tree9141381476f1dee0a9a8c6e27f458c07e70ab926 /epan/tcap-persistentdata.c
parent9636fdfefd44bd4105c893928a6f4359e68c9fe0 (diff)
From Florent Drouin:
Correct bug in TCAP statistics when read filter is used. Rename the TCAP decoding functions to show which are ITU vs. ANSI. Don't unregister an ITU SSN if it's used by an ANSI subdissector. svn path=/trunk/; revision=22421
Diffstat (limited to 'epan/tcap-persistentdata.c')
-rw-r--r--epan/tcap-persistentdata.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/tcap-persistentdata.c b/epan/tcap-persistentdata.c
index 9e7deebaf3..c84880ffcd 100644
--- a/epan/tcap-persistentdata.c
+++ b/epan/tcap-persistentdata.c
@@ -965,7 +965,12 @@ tcapsrt_call_matching(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
struct tcapsrt_info_t *p_tcapsrt_info)
{
struct tcaphash_context_t *tcap_context=NULL;
-
+
+ /* if this packet isn't loaded because of a read filter, don't output anything */
+ if(pinfo == NULL || pinfo->fd->num == 0) {
+ return NULL;
+ }
+
switch (p_tcapsrt_info->ope) {
case TC_BEGIN: