VirtualBox

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


Ignore:
Timestamp:
Aug 6, 2014 2:01:37 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95397
Message:

NAT/Net: Convert couple of missed checks to SOCKET_ERROR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/pxtcp.c

    r52284 r52287  
    11021102            status = getsockopt(pxtcp->sock, SOL_SOCKET, SO_ERROR,
    11031103                                (char *)&pxtcp->sockerr, &optlen);
    1104             if (status < 0) {  /* should not happen */
     1104            if (status == SOCKET_ERROR) { /* should not happen */
    11051105                DPRINTF(("%s: sock %d: SO_ERROR failed: %R[sockerr]\n",
    11061106                         __func__, fd, SOCKERRNO()));
     
    16341634        status = getsockopt(pxtcp->sock, SOL_SOCKET, SO_ERROR,
    16351635                            (char *)&sockerr, &optlen);
    1636         if (status < 0) {      /* should not happen */
     1636        if (status == SOCKET_ERROR) { /* should not happen */
    16371637            DPRINTF(("sock %d: SO_ERROR failed: %R[sockerr]\n",
    16381638                     fd, SOCKERRNO()));
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