source: trunk/dports/cross/mipsel-linux-uclib-headers/files/110-inet6_hosts_resolve.patch @ 16805

Last change on this file since 16805 was 16805, checked in by mww, 14 years ago

new port cross/mipsel-linux-uclib-headers

  • Property svn:eol-style set to native
File size: 1014 bytes
  • libc/inet/resolv.c

    diff -urN uClibc-0.9.27.old/libc/inet/resolv.c uClibc-0.9.27/libc/inet/resolv.c
    old new  
    20292029                int old_errno = errno;  /* Save the old errno and reset errno */
    20302030                __set_errno(0);                 /* to check for missing /etc/hosts. */
    20312031
    2032                 if ((i=__get_hosts_byname_r(name, AF_INET, result_buf,
     2032                if ((i=__get_hosts_byname_r(name, AF_INET6, result_buf,
    20332033                                                                        buf, buflen, result, h_errnop))==0)
    20342034                        return i;
    20352035                switch (*h_errnop) {
  • libc/inet/resolv.c

    diff -urN uClibc-0.9.27.old/libc/inet/resolv.c uClibc-0.9.27/libc/inet/resolv.c
    old new  
    15131513                } else {
    15141514                        DPRINTF("Error\n");
    15151515                        ret=TRY_AGAIN;
    1516                         break; /* bad ip address */
     1516                        continue; /* bad ip address, ignore */
    15171517        }
    15181518       
    15191519                if (action!=GETHOSTENT) {
Note: See TracBrowser for help on using the repository browser.