VirtualBox

Changeset 51022 in vbox


Ignore:
Timestamp:
Apr 9, 2014 5:08:55 PM (11 years ago)
Author:
vboxsync
Message:

NAT/Net: call fcntl(F_GETFL) correctly, it ignores its argument and
returns the flags as the return value of fcntl(2).

File:
1 edited

Legend:

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

    r50022 r51022  
    179179        int sflags;
    180180
    181         status = fcntl(s, F_GETFL, &sflags);
    182         if (status < 0) {
     181        sflags = fcntl(s, F_GETFL, 0);
     182        if (sflags < 0) {
    183183            perror("F_GETFL");
    184184            closesocket(s);
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