]> granicus.if.org Git - curl/commitdiff
return -1 even if SSL_pending() doesn't return non-zero, as we don't really
authorDaniel Stenberg <daniel@haxx.se>
Sun, 29 Dec 2002 16:27:31 +0000 (16:27 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 29 Dec 2002 16:27:31 +0000 (16:27 +0000)
care how many bytes that is readable NOW. Philippe Raoult reported the
bug in 7.10.3-pre3.

lib/sendf.c

index ed36ea95d2456ce734868f8d2ce84b581ef52a02..add8af9ef8f38a90b964b4929593231eefc6474b 100644 (file)
@@ -347,10 +347,8 @@ int Curl_read(struct connectdata *conn,
         break;
       case SSL_ERROR_WANT_READ:
       case SSL_ERROR_WANT_WRITE:
-        /* if there's data pending, then we re-invoke SSL_read() */
-        if(SSL_pending(conn->ssl.handle))
-          return -1; /* basicly EWOULDBLOCK */
-        break;
+        /* there's data pending, re-invoke SSL_read() */
+        return -1; /* basicly EWOULDBLOCK */
       default:
         failf(conn->data, "SSL read error: %d", err);
         return CURLE_RECV_ERROR;