VirtualBox

Changeset 50150 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jan 21, 2014 6:31:28 PM (11 years ago)
Author:
vboxsync
Message:

NAT/Slirp:resolv_conf_parser.c: drop nameservers which has order number more than 3.

from resolver(5)
nameserver ...

Up to MAXNS (currently 3) name servers may be listed, one per keyword.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/resolv_conf_parser.c

    r50135 r50150  
    246246
    247247        st = parser->rcpp_state;
     248
     249        /* It's still valid resolv.conf file, just rest of the nameservers should be ignored */
     250        if (st->rcps_num_nameserver >= RCPS_MAX_NAMESERVERS)
     251            return rcp_get_token(parser);
     252
    248253        address = &st->rcps_nameserver[st->rcps_num_nameserver];
    249254        str_address = &st->rcps_nameserver_str_buffer[st->rcps_num_nameserver * RCPS_IPVX_SIZE];
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette