mirror of
https://github.com/curl/curl.git
synced 2026-05-01 13:27:52 +03:00
Small fix.
This commit is contained in:
parent
60b029869f
commit
dc4fbd2e97
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue