diff options
-rw-r--r-- | nodelay.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -55,7 +55,7 @@ int socket(int domain, int type, int protocol) if (fd >= 0 && protocol == IPPROTO_TCP && - type == SOCK_STREAM && + (type & SOCK_STREAM) == SOCK_STREAM && domain == PF_INET) { int orig_errno = errno; int optval = nodelay_value; |