Changeset 706 for trunk/mio/mio_impl.h

Show
Ignore:
Timestamp:
06/10/08 14:06:03 (3 months ago)
Author:
smoku
Message:

Setting MIO_ERROR to EFAULT:'Bad address' on IP address resolution failure. Fixes #224

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/mio/mio_impl.h

    r576 r706  
    379379 
    380380    /* convert the hostip */ 
    381     if(j_inet_pton(hostip, &sa)<=0) 
    382         return NULL; 
     381    if(j_inet_pton(hostip, &sa)<=0) { 
     382        MIO_ERROR = EFAULT; 
     383        return NULL; 
     384    } 
    383385 
    384386    /* attempt to create a socket */