VirtualBox

Changeset 63913 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Sep 20, 2016 12:31:51 PM (8 years ago)
Author:
vboxsync
Message:

NAT: don't stop parsing if we are out of buffer space for search
domains. LogRel search domains we've dropped b/c we didn't have
buffer space for them.

File:
1 edited

Legend:

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

    r63876 r63913  
    362362        if (RTStrCmp(tok, "search") == 0)
    363363        {
    364             if (cbSearchBuf == 0)
    365             {
    366                 LogRel(("NAT: resolv.conf: no buffer space, ignoring search list %s\n", s));
    367                 break;
    368             }
    369 
    370364            while ((tok = getToken(NULL, &s)) && !NO_VALUE(tok))
    371365            {
     
    377371                }
    378372
    379                 Log2(("NAT: resolv.conf: saving search @%td,+%zu\n",
    380                       pszSearchBuf - state->rcps_searchlist_buffer, cbSearchBuf));
     373                Log2(("NAT: resolv.conf: saving search %s @%td,+%zu\n",
     374                      tok, pszSearchBuf - state->rcps_searchlist_buffer, cbSearchBuf));
    381375                state->rcps_searchlist[i] = pszSearchBuf;
    382376                rc = RTStrCopyP(&pszSearchBuf, &cbSearchBuf, tok);
     
    390384                else
    391385                {
    392                     Log2(("NAT: resolv.conf: truncated: %s\n", tok));
     386                    LogRel(("NAT: resolv.conf: no buffer space, ignoring search domain %s\n", tok));
    393387                    pszSearchBuf = state->rcps_searchlist[i];
    394388                    cbSearchBuf = sizeof(state->rcps_searchlist_buffer)
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