Changeset 0a368ae


Ignore:
Timestamp:
09/03/15 17:13:15 (5 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, 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:
bf986a1
Parents:
7e6b54d
Message:

Fix assert fail with last_packet for RT inputs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r9a3a846 r0a368ae  
    924924                        ++libtrace->accepted_packets;
    925925                        ++libtrace->sequence_number;
    926                         libtrace->last_packet = packet;
     926                        if (packet->trace == libtrace)
     927                                libtrace->last_packet = packet;
    927928                        return ret;
    928929                } while(1);
     
    965966       
    966967        packet->trace = trace;
     968        trace->last_packet = packet;
    967969       
    968970        /* Clear packet cache */
Note: See TracChangeset for help on using the changeset viewer.