forked from osmocom/wireshark
Initialize fd_head->frame in all cases where we allocate fd_head.
Also, sort the initializations of structure members by the order in the structure, to make it easier to check that we've initialized them all. Bug: 13231 Change-Id: Id2819940d916a5fd5a3f1bf2fc20bd3ee34a75f4 Reviewed-on: https://code.wireshark.org/review/19195 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
00223bc5b9
commit
2dfa603333
|
@ -2427,14 +2427,15 @@ fragment_start_seq_check(reassembly_table *table, const packet_info *pinfo,
|
|||
/* Create list-head. */
|
||||
fd_head = g_slice_new(fragment_head);
|
||||
fd_head->next = NULL;
|
||||
fd_head->datalen = tot_len;
|
||||
fd_head->frame = 0;
|
||||
fd_head->offset = 0;
|
||||
fd_head->fragment_nr_offset = 0;
|
||||
fd_head->len = 0;
|
||||
fd_head->flags = FD_BLOCKSEQUENCE|FD_DATALEN_SET;
|
||||
fd_head->tvb_data = NULL;
|
||||
fd_head->fragment_nr_offset = 0;
|
||||
fd_head->datalen = tot_len;
|
||||
fd_head->reassembled_in = 0;
|
||||
fd_head->reas_in_layer_num = 0;
|
||||
fd_head->flags = FD_BLOCKSEQUENCE|FD_DATALEN_SET;
|
||||
fd_head->tvb_data = NULL;
|
||||
fd_head->error = NULL;
|
||||
|
||||
insert_fd_head(table, fd_head, pinfo, id, data);
|
||||
|
|
Loading…
Reference in New Issue