VirtualBox

Changeset 92088 in vbox


Ignore:
Timestamp:
Oct 26, 2021 4:02:51 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147902
Message:

VBoxNetAdp: (bugref:10077) Fixed crash on empty lines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/adpctl/VBoxNetAdpCtl.cpp

    r91771 r92088  
    977977    for (int line = 1; fgets(szLine, sizeof(szLine), fp); ++line)
    978978    {
     979        pszToken = strtok(szLine, " \t\n");
    979980        /* Skip anything except '*' lines */
    980         if (strcmp("*", strtok(szLine, " \t\n")))
     981        if (pszToken == NULL || strcmp("*", pszToken))
    981982            continue;
    982983        /* Match the specified address against each network */
Note: See TracChangeset for help on using the changeset viewer.

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