Ignore:
Timestamp:
11/26/18 16:50:48 (2 years ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
88b9798
Parents:
2ceec6a
Message:

Assertion cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_etsilive.c

    r2725318 rf6f3ae5  
    595595        libtrace_t *libtrace = packet->trace;
    596596
    597         assert(libtrace);
    598         assert(FORMAT_DATA->shareddec);
     597        /*assert(libtrace);*/
     598        if (!libtrace) {
     599                fprintf(stderr, "Packet is not associated with a trace in etsilive_get_pdu_length()\n");
     600                return TRACE_ERR_NULL_TRACE;
     601        }
     602        /*assert(FORMAT_DATA->shareddec);*/
     603        if (!FORMAT_DATA->shareddec) {
     604                trace_set_err(libtrace, TRACE_ERR_BAD_FORMAT, "Etsilive format data shareddec is NULL in etsilive_get_pdu_length()\n");
     605                return -1;
     606        }
    599607
    600608        /* 0 should be ok here for quickly evaluating the first length
Note: See TracChangeset for help on using the changeset viewer.