Make pointers to raw packet data pointers to guint8, not pointers to

char; they're chunks of raw octets, not characters.

svn path=/trunk/; revision=50586
This commit is contained in:
Guy Harris 2013-07-14 17:39:36 +00:00
parent b161d15f0e
commit 0e40234217
2 changed files with 4 additions and 4 deletions

View File

@ -299,7 +299,7 @@ force_reassemble_seq(reassembly_table *table, packet_info *pinfo, guint32 id)
fragment_data *fd_i;
fragment_data *last_fd;
guint32 dfpos, size, packet_lost, burst_lost, seq_num;
char *data;
guint8 *data;
fd_head = fragment_get(table, pinfo, id, NULL);
@ -343,7 +343,7 @@ force_reassemble_seq(reassembly_table *table, packet_info *pinfo, guint32 id)
last_fd=fd_i;
}
data = (char *) g_malloc(size);
data = (guint8 *) g_malloc(size);
fd_head->tvb_data = tvb_new_real_data(data, size, size);
fd_head->len = size; /* record size for caller */

View File

@ -344,7 +344,7 @@ force_reassemble_seq(reassembly_table *table, packet_info *pinfo, guint32 id)
fragment_data *fd_i;
fragment_data *last_fd;
guint32 dfpos, size, packet_lost, burst_lost, seq_num;
char *data;
guint8 *data;
fd_head = fragment_get(table, pinfo, id, NULL);
@ -388,7 +388,7 @@ force_reassemble_seq(reassembly_table *table, packet_info *pinfo, guint32 id)
last_fd=fd_i;
}
data = (char *) g_malloc(size);
data = (guint8 *) g_malloc(size);
fd_head->tvb_data = tvb_new_real_data(data, size, size);
fd_head->len = size; /* record size for caller */