mirror of
https://github.com/curl/curl.git
synced 2025-04-12 16:20:35 +08:00
Small fix.
This commit is contained in:
parent
60b029869f
commit
dc4fbd2e97
@ -624,7 +624,7 @@ static void tcpnodelay(struct connectdata *conn,
|
||||
#ifdef HAVE_GETPROTOBYNAME
|
||||
struct protoent *pe = getprotobyname("tcp");
|
||||
if (pe)
|
||||
proto = p->p_proto;
|
||||
proto = pe->p_proto;
|
||||
#endif
|
||||
|
||||
if(setsockopt(sockfd, proto, TCP_NODELAY, (void *)&onoff,
|
||||
|
Loading…
x
Reference in New Issue
Block a user