Cleaned up code.
This commit is contained in:
@ -3053,7 +3053,6 @@ int dcb_bytes_readable_SSL (DCB *dcb, int nread)
|
||||
int rval = 0;
|
||||
int nbytes;
|
||||
int rc = ioctl(dcb->fd, FIONREAD, &nbytes);
|
||||
int pending = SSL_pending (dcb->ssl);
|
||||
|
||||
if (rc == -1)
|
||||
{
|
||||
@ -3070,6 +3069,7 @@ int dcb_bytes_readable_SSL (DCB *dcb, int nread)
|
||||
}
|
||||
else
|
||||
{
|
||||
int pending = SSL_pending(dcb->ssl);
|
||||
rval = nbytes + pending;
|
||||
if (rval == 0 && nread == 0)
|
||||
{
|
||||
@ -3134,7 +3134,7 @@ void dcb_log_ssl_read_error(DCB *dcb, int ssl_errno, int rc)
|
||||
{
|
||||
while ((ssl_errno = ERR_get_error()) != 0)
|
||||
{
|
||||
ERR_error_string_n(ssl_errno, errbuf, 200);
|
||||
ERR_error_string_n(ssl_errno, errbuf, STRERROR_BUFLEN);
|
||||
skygw_log_write(LE,
|
||||
"%s",
|
||||
errbuf);
|
||||
|
Reference in New Issue
Block a user