Changeset 1022


Ignore:
Timestamp:
Mar 1, 2007 4:49:42 PM (13 years ago)
Author:
bennylp
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/pjlib/src/pj/addr_resolv_sock.c

    r974 r1022  
    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.