VirtualBox

Ignore:
Timestamp:
Oct 2, 2014 4:43:35 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
96376
Message:

VBoxNetPortForwardString.cpp: fixed braces to properly differ between 'tcp' and 'udp' when parsing NAT port forwarding rules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NetLib/VBoxNetPortForwardString.cpp

    r50459 r52938  
    282282    cbRaw--;
    283283
    284     if (     ((    fTcpProto = (RTStrNICmp(pszRaw, "tcp", 3) == 0)
    285               ||  (RTStrNICmp(pszRaw, "udp", 3) == 0))
    286           && (pszRaw[3] == PF_FIELD_SEPARATOR)))
     284    if (  (  (fTcpProto = (RTStrNICmp(pszRaw, "tcp", 3) == 0))
     285           ||              RTStrNICmp(pszRaw, "udp", 3) == 0)
     286        && pszRaw[3] == PF_FIELD_SEPARATOR)
    287287    {
    288288        proto = (fTcpProto ? IPPROTO_TCP : IPPROTO_UDP);
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