aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-iax2.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-10-03 15:52:14 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-10-03 15:52:14 +0000
commit376e1adf58515cf9c0e353b5354d2f9c4bb13b11 (patch)
treefd8aef2306d31e5228214028fcd70c94cff9d1be /epan/dissectors/packet-iax2.c
parent6a37b198397de0e7b503302831ef6c33e4e834e3 (diff)
from Peter Johansson:
The supplied patch resolves an issue with the use of the not yet initialized variable "fid". / Regards, Peter svn path=/trunk/; revision=16079
Diffstat (limited to 'epan/dissectors/packet-iax2.c')
-rw-r--r--epan/dissectors/packet-iax2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-iax2.c b/epan/dissectors/packet-iax2.c
index 74f8c03ab5..9f7ee7a7a1 100644
--- a/epan/dissectors/packet-iax2.c
+++ b/epan/dissectors/packet-iax2.c
@@ -1721,9 +1721,9 @@ static void desegment_iax(tvbuff_t *tvb, packet_info *pinfo, proto_tree *iax2_tr
/* then we are continuing an already-started pdu */
frag_len = tvb_reported_length( tvb );
offset = 0;
- tot_len = GPOINTER_TO_UINT(g_hash_table_lookup(iax_call->totlen_table, GUINT_TO_POINTER(fid)));
if(!pinfo->fd->flags.visited) {
fid = dirdata->current_frag_id;
+ tot_len = GPOINTER_TO_UINT(g_hash_table_lookup(iax_call->totlen_table, GUINT_TO_POINTER(fid)));
g_hash_table_insert( iax_call->fid_table, GUINT_TO_POINTER(pinfo->fd->num), GUINT_TO_POINTER(fid) );
frag_offset = dirdata->current_frag_bytes;
complete = dirdata->current_frag_bytes > tot_len;