Clarence Gardner pointed out the not-taken-care-of return codes from SSL_read

This commit is contained in:
Daniel Stenberg 2002-04-02 09:33:38 +00:00
parent 04da96e044
commit 547e91dbf0
1 changed files with 3 additions and 0 deletions

View File

@ -347,6 +347,9 @@ int Curl_read(struct connectdata *conn,
case SSL_ERROR_WANT_WRITE:
/* if there's data pending, then we re-invoke SSL_read() */
break;
default:
failf(conn->data, "SSL read error: %d", err);
return CURLE_READ_ERROR;
}
} while(loop);
if(loop && SSL_pending(conn->ssl.handle))