Changeset 2f9b609 for lib


Ignore:
Timestamp:
01/14/19 17:35:36 (21 months ago)
Author:
Shane Alcock <salcock@…>
Branches:
develop
Children:
385678b
Parents:
d0941cc
Message:

Exit trace_get_layer2() early if the meta layer is NULL.

Fixes #93.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols_l2.c

    r49f8ceb r2f9b609  
    466466         * calling trace_get_packet_buffer more than once like we used to.
    467467         */
    468        
    469468        meta = trace_get_packet_buffer(packet, linktype, remaining);
     469        if (meta == NULL) {
     470                return NULL;
     471        }
    470472
    471473        /* If there are no meta-data headers, we just return the start of the
Note: See TracChangeset for help on using the changeset viewer.