Changeset 32f365f for lib/format_rt.c


Ignore:
Timestamp:
03/16/06 16:52:05 (15 years ago)
Author:
Shane Alcock <salcock@…>
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:
548da5c
Parents:
3d4fb8f
Message:

Corrected length of close message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_rt.c

    rb51edf5 r32f365f  
    239239        /* Send a close message to the server */
    240240        if (send(RT_INFO->input_fd, &close_msg, sizeof(rt_header_t) +
    241                                 close_msg.length, 0) != sizeof(rt_header_t)) {
     241                                close_msg.length, 0) != sizeof(rt_header_t)
     242                                + close_msg.length) {
    242243                printf("Failed to send close message to server\n");
    243244       
     
    291292                }
    292293                packet->trace = RT_INFO->dummy_pcap;
    293                 return;
     294                return 0;       
    294295        }
    295296
Note: See TracChangeset for help on using the changeset viewer.