VirtualBox

Changeset 23144 in vbox


Ignore:
Timestamp:
Sep 18, 2009 4:36:06 PM (15 years ago)
Author:
vboxsync
Message:

NetIf-darwin.cpp: More search corrections on sdl_data not terminated with null

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/darwin/NetIf-darwin.cpp

    r23136 r23144  
    480480        struct sockaddr_dl *pSdl = (struct sockaddr_dl *)(pIfMsg + 1);
    481481
    482         bool fSkip = !!strcmp(pInfo->szShortName, pSdl->sdl_data);
     482        bool fSkip = !!strncmp(pInfo->szShortName, pSdl->sdl_data, pSdl->sdl_nlen)
     483            || pInfo->szShortName[pSdl->sdl_nlen] != '\0';
    483484
    484485        pNext += pIfMsg->ifm_msglen;
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