Changeset e4ebf84


Ignore:
Timestamp:
04/25/06 21:51:29 (15 years ago)
Author:
Perry Lorier <perry@…>
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:
b333d68
Parents:
b874684
Message:

if gethostbyname fails, then set an error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    r91db67b re4ebf84  
    352352        struct sockaddr_in remote;
    353353        if ((he=gethostbyname(CONNINFO.rt.hostname)) == NULL) { 
    354                 trace_set_err(libtrace,errno,"failed to resolve %s",
     354                trace_set_err(libtrace,TRACE_ERR_INIT_FAILED,"failed to resolve %s",
    355355                                CONNINFO.rt.hostname);
    356356                return -1;
Note: See TracChangeset for help on using the changeset viewer.