dpa400: Fix wiretap data packet len

Increment the packet size whenn adding the from_source field.

Change-Id: I380305d763df40b2cf1f2209643d05dfde12a716
Reviewed-on: https://code.wireshark.org/review/27811
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Dirk Eibach 2018-05-25 21:14:52 +02:00 committed by Guy Harris
parent a1e5a15780
commit bf8590326a
1 changed files with 1 additions and 0 deletions

View File

@ -147,6 +147,7 @@ static gboolean dpa400_read_packet(wtap *wth, FILE_T fh, wtap_rec *rec,
from_source = !get_from(&hdr);
ws_buffer_append(buf, &from_source, 1);
ctr++;
while (1) {
if (!wtap_read_bytes_or_eof(fh, chunk, sizeof(chunk), err, err_info))