Changeset 087674b


Ignore:
Timestamp:
09/14/15 17:43:58 (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:
2b4444f
Parents:
8b7f254
Message:

Fix stupid bug I introduced into erf_dump_packet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    rb3dca4d r087674b  
    459459                packet->payload = (char*)packet->buffer + erf_get_framing_length(packet);
    460460        }
     461
     462        assert(erfptr->rlen != 0);
    461463       
    462464        if (libtrace->format_data == NULL) {
     
    562564                int caplen) {
    563565        int numbytes = 0;
    564         int size;
    565566
    566567        if ((numbytes =
     
    574575        }
    575576
    576         size=caplen-(framinglen);
    577         numbytes=wandio_wwrite(OUTPUT->file, buffer, (size_t)size);
    578         if (numbytes != size) {
     577        numbytes=wandio_wwrite(OUTPUT->file, buffer, (size_t)caplen);
     578        if (numbytes != caplen) {
    579579                trace_set_err_out(libtrace,errno,
    580580                                "write(%s)",libtrace->uridata);
Note: See TracChangeset for help on using the changeset viewer.