Clarence Gardner pointed out the not-taken-care-of return codes from SSL_read
authorDaniel Stenberg <daniel@haxx.se>
Tue, 2 Apr 2002 09:33:38 +0000 (09:33 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 2 Apr 2002 09:33:38 +0000 (09:33 +0000)
lib/sendf.c

index 84fedaa..be03014 100644 (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))