aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/sendf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sendf.c b/lib/sendf.c
index 84fedaac1..be030142d 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -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))