Handle a null pointer. Fixes bugs 778 and 787.

svn path=/trunk/; revision=17483
This commit is contained in:
Gerald Combs 2006-03-06 19:49:34 +00:00
parent 334048d3ce
commit f99ad2e895
1 changed files with 2 additions and 1 deletions

View File

@ -1458,7 +1458,8 @@ desegment_tcp(tvbuff_t *tvb, packet_info *pinfo, int offset,
for(ipfd=ipfd_head->next; ipfd->next; ipfd=ipfd->next){
old_tsk.seq = tsk->start_seq + ipfd->offset;
new_tsk = g_hash_table_lookup(tcp_segment_table, &old_tsk);
new_tsk->tot_len = tsk->tot_len;
if (new_tsk)
new_tsk->tot_len = tsk->tot_len;
}
/* this is the next segment in the sequence we want */