diff options
author | rbalint <rbalint@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-01-06 14:42:20 +0000 |
---|---|---|
committer | rbalint <rbalint@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-01-06 14:42:20 +0000 |
commit | ae6ed43d6e6ca2d7be293e369e11f00426af6df3 (patch) | |
tree | 0e408ab36a2d632accee7b2b2d75699d645a98fb /tap-megaco-common.c | |
parent | 88247ce69c745785395068b9c1b46eb28a268240 (diff) |
Disable MEGACO service response time statistics when context tracking is disabled.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27167 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tap-megaco-common.c')
-rw-r--r-- | tap-megaco-common.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tap-megaco-common.c b/tap-megaco-common.c index f3ba4d4673..a6aa587436 100644 --- a/tap-megaco-common.c +++ b/tap-megaco-common.c @@ -119,7 +119,13 @@ megacostat_packet(void *pms, packet_info *pinfo, epan_dissect_t *edt _U_, const switch (mi->type) { GCP_CMD_REQ_CASE - if(mi->trx->initial->framenum != mi->msg->framenum){ + if(!mi->trx->initial) { + /* Track Context is probably disabled, we cannot + * measure service response time */ + return 0; + } + + else if(mi->trx->initial->framenum != mi->msg->framenum){ /* Duplicate is ignored */ ms->req_dup_num++; } |