qssl: reflect recent code changes in SSL interface

Reported by Guenter Knauf.
This commit is contained in:
Kamil Dudka
2010-04-07 10:07:29 +02:00
parent ef1ac363ee
commit 10977f57de
3 changed files with 22 additions and 11 deletions

View File

@@ -553,7 +553,7 @@ int Curl_read(struct connectdata *conn, /* connection data */
}
if(conn->ssl[num].state == ssl_connection_complete) {
int curlcode;
int curlcode = CURLE_RECV_ERROR;
nread = Curl_ssl_recv(conn, num, buffertofill, bytesfromsocket, &curlcode);
if(nread == -1)