Changeset 4237


Ignore:
Timestamp:
Jan 8, 2010, 1:48:12 AM (13 years ago)
Author:
Sam Hocevar
Message:

File descriptors 0 to 2 may be network sockets, don’t rule them out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/libzzuf/network.c

    r4224 r4237  
    205205    int ret;
    206206
    207     // Probably not a socket descriptor
    208     if (sock < 3)
    209         return 0;
    210 
    211207    /* Use a sockaddr instead of sockaddr_in because we don't know whether
    212208     * their alignments are compatible. So, no cast. */
Note: See TracChangeset for help on using the changeset viewer.