Changeset 6b7a958


Ignore:
Timestamp:
01/14/19 17:29:36 (21 months ago)
Author:
Shane Alcock <salcock@…>
Branches:
develop
Children:
5460603
Parents:
2d16fc7
Message:

If pcap payload is NULL, then wire length must be zero.

Fixes #90.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcapfile.c

    r4854e88 r6b7a958  
    675675                        "pcapfile_get_wire_length()");
    676676                return -1;
     677        }
     678
     679        if (packet->payload == NULL) {
     680                return 0;
    677681        }
    678682
Note: See TracChangeset for help on using the changeset viewer.