Changeset dc6dc11 for lib/trace.c


Ignore:
Timestamp:
11/08/07 12:45:37 (14 years ago)
Author:
Scott Raynel <smr26@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
3996329
Parents:
8f18776
Message:

Fix a bug in the previous commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r8f18776 rdc6dc11  
    710710                return -1;
    711711        }
    712         if (packet->buf_control==TRACE_CTRL_PACKET || packet->buf_control==TRACE_CTRL_EXTERNAL) {
     712        if (!(packet->buf_control==TRACE_CTRL_PACKET || packet->buf_control==TRACE_CTRL_EXTERNAL)) {
    713713                trace_set_err(libtrace,TRACE_ERR_BAD_STATE,"Packet passed to trace_read_packet() is invalid\n");
    714714                return -1;
Note: See TracChangeset for help on using the changeset viewer.