VirtualBox

Changeset 2959 in vbox


Ignore:
Timestamp:
May 31, 2007 10:54:02 AM (18 years ago)
Author:
vboxsync
Message:

Don't log crap for malformed resolv.conf files.

File:
1 edited

Legend:

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

    r2938 r2959  
    121121                char *tok;
    122122                tok = strtok(&buff[6], " \t\n");
    123                 *ppszDomain = RTStrDup(tok);
    124                 if (pData->fPassDomain)
    125                     LogRel(("NAT: passing domain name %s\n", tok));
    126                 else
    127                     Log(("nat: ignoring domain %s\n", tok));
     123                if (tok)
     124                {
     125                    *ppszDomain = RTStrDup(tok);
     126                    if (pData->fPassDomain)
     127                        LogRel(("NAT: passing domain name %s\n", tok));
     128                    else
     129                        Log(("nat: ignoring domain %s\n", tok));
     130                }
    128131            }
    129132        }
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