VirtualBox

Changeset 64759 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 28, 2016 9:04:38 AM (8 years ago)
Author:
vboxsync
Message:

NetworkServices/NAT: fixed two socket leaks to make Parfait happy (not really necessary)

Location:
trunk/src/VBox/NetworkServices/NAT
Files:
2 edited

Legend:

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

    r63567 r64759  
    12041204            if (RT_SUCCESS(vrc))
    12051205            {
     1206                closesocket(icmpsock4);
     1207                closesocket(icmpsock6);
    12061208                return RTMsgErrorExit(RTEXITCODE_FAILURE,
    12071209                                      "Failed to initialize COM: %s: %Rhrf",
     
    12101212        }
    12111213#endif  // VBOX_WITH_XPCOM
     1214        closesocket(icmpsock4);
     1215        closesocket(icmpsock6);
    12121216        return RTMsgErrorExit(RTEXITCODE_FAILURE,
    12131217                              "Failed to initialize COM: %Rhrf", hrc);
  • trunk/src/VBox/NetworkServices/NAT/winutils.h

    r62761 r64759  
    166166
    167167#  include <errno.h>
     168#  include <unistd.h>
    168169
    169170#  define SOCKET int
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