mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
David Byron pointed out that this -1 on the buffer size is pointless since
the buffer is already BUFSIZE +1 one big to fit the extra trailing zero. This change is reported to fix David's weird SSL problem...
This commit is contained in:
parent
ab96e2d6e9
commit
83c470a443
@ -285,7 +285,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
||||
read or we get a EWOULDBLOCK */
|
||||
do {
|
||||
size_t buffersize = data->set.buffer_size?
|
||||
data->set.buffer_size:BUFSIZE -1;
|
||||
data->set.buffer_size:BUFSIZE;
|
||||
|
||||
/* receive data from the network! */
|
||||
int readrc = Curl_read(conn, conn->sockfd, k->buf, buffersize, &nread);
|
||||
|
Loading…
Reference in New Issue
Block a user