Small fix.

This commit is contained in:
Gisle Vanem 2006-02-26 18:20:43 +00:00
parent 60b029869f
commit dc4fbd2e97

View File

@ -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,