Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/networking/nslookup.c

    r3232 r3621  
    139139    len_and_sockaddr *lsa;
    140140
     141    if (!server)
     142        return;
     143
    141144    /* NB: this works even with, say, "[::1]:5353"! :) */
    142145    lsa = xhost2sockaddr(server, 53);
     
    182185    /*_res.options |= RES_USE_INET6;*/
    183186
    184     if (argv[2])
    185         set_default_dns(argv[2]);
     187    set_default_dns(argv[2]);
    186188
    187189    server_print();
     190
     191    /* getaddrinfo and friends are free to request a resolver
     192     * reinitialization. Just in case, set_default_dns() again
     193     * after getaddrinfo (in server_print). This reportedly helps
     194     * with bug 675 "nslookup does not properly use second argument"
     195     * at least on Debian Wheezy and Openwrt AA (eglibc based).
     196     */
     197    set_default_dns(argv[2]);
     198
    188199    return print_host(argv[1], "Name:");
    189200}
Note: See TracChangeset for help on using the changeset viewer.