File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1723,15 +1723,10 @@ _httpTLSRead(http_t *http, // I - Connection to server
17231723 if (bytes > 0 )
17241724 return (bytes );
17251725
1726- switch (SSL_get_error (http -> tls , bytes ))
1727- {
1728- case SSL_ERROR_WANT_READ :
1729- errno = EAGAIN ;
1730- break ;
1731- default :
1732- errno = EPIPE ;
1733- break ;
1734- }
1726+ if (SSL_get_error (http -> tls , bytes ) == SSL_ERROR_WANT_READ )
1727+ errno = EAGAIN ;
1728+ else
1729+ errno = EPIPE ;
17351730
17361731 return (-1 );
17371732}
@@ -2073,15 +2068,10 @@ _httpTLSWrite(http_t *http, // I - Connection to server
20732068 if (bytes > 0 )
20742069 return (bytes );
20752070
2076- switch (SSL_get_error (http -> tls , bytes ))
2077- {
2078- case SSL_ERROR_WANT_WRITE :
2079- errno = EAGAIN ;
2080- break ;
2081- default :
2082- errno = EPIPE ;
2083- break ;
2084- }
2071+ if (SSL_get_error (http -> tls , bytes ) == SSL_ERROR_WANT_WRITE )
2072+ errno = EAGAIN ;
2073+ else
2074+ errno = EPIPE ;
20852075
20862076 return (-1 );
20872077}
You can’t perform that action at this time.
0 commit comments