Changeset 1023 for pjproject/trunk


Ignore:
Timestamp:
Mar 1, 2007 4:52:45 PM (18 years ago)
Author:
bennylp
Message:

Fixed ticket #149: Crash when resolving bad hostnames in Linux (thanks Binu KS)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/addr_resolv_sock.c

    r974 r1023  
    3939    he = gethostbyname(copy); 
    4040    if (!he) { 
     41        return PJ_ERESOLVE; 
     42        /* DO NOT use pj_get_netos_error() since host resolution error 
     43         * is reported in h_errno instead of errno! 
    4144        return pj_get_netos_error(); 
     45         */ 
    4246    } 
    4347 
Note: See TracChangeset for help on using the changeset viewer.