VirtualBox

Changeset 87618 in vbox for trunk/src/VBox/NetworkServices


Ignore:
Timestamp:
Feb 5, 2021 12:40:52 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142653
Message:

NAT/Net: Oops. getExtraData() - fix previous that was only partially
edited. bugref:9929.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/VBoxNetLwipNAT.cpp

    r87617 r87618  
    386386    {
    387387        RTNETADDRIPV4 addr;
    388         rc = RTNetStrToIPv4Addr(com::Utf8Str(bstrSourceIp4).c_str(), &addr);
     388        rc = RTNetStrToIPv4Addr(strSourceIp4.c_str(), &addr);
    389389        if (RT_SUCCESS(rc))
    390390        {
     
    398398        {
    399399            LogRel(("Failed to parse \"%s\" IPv4 source address specification\n",
    400                     com::Utf8Str(bstrSourceIp4).c_str()));
     400                    strSourceIp4.c_str()));
    401401        }
    402402    }
     
    413413            RTNETADDRIPV6 addr;
    414414            char *pszZone = NULL;
    415             rc = RTNetStrToIPv6Addr(com::Utf8Str(bstrSourceIp6).c_str(), &addr, &pszZone);
     415            rc = RTNetStrToIPv6Addr(strSourceIp6.c_str(), &addr, &pszZone);
    416416            if (RT_SUCCESS(rc))
    417417            {
     
    425425            {
    426426                LogRel(("Failed to parse \"%s\" IPv6 source address specification\n",
    427                         com::Utf8Str(bstrSourceIp6).c_str()));
     427                        strSourceIp6.c_str()));
    428428            }
    429429        }
     
    14651465    AssertReturn(*pcszKey != '\0', E_FAIL);
    14661466
    1467     com::BstrFmt bstrKey("NAT/%s/%s", networkName.c_str(), pcszKey);
     1467    com::BstrFmt bstrKey("NAT/%s/%s", getNetworkName().c_str(), pcszKey);
    14681468    com::Bstr bstrValue;
    14691469    hrc = virtualbox->GetExtraData(bstrKey.raw(), bstrValue.asOutParam());
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