Changeset 84a4bc3


Ignore:
Timestamp:
06/07/06 23:35:28 (15 years ago)
Author:
Matt Brown <mattb@…>
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:
28b129e
Parents:
e867df4
Message:

Fix inverted check in trace_get_tcp that meant that a pointer was
returned for packets that weren't TCP (like UDP)!!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols.c

    re867df4 r84a4bc3  
    399399        tcp=(libtrace_tcp_t*)trace_get_transport(packet,&proto,NULL);
    400400
    401         if (!tcp && proto != 6)
     401        if (!tcp || proto != 6)
    402402                return NULL;
    403403
Note: See TracChangeset for help on using the changeset viewer.