Call ERR_clear_error() where necessary

This commit is contained in:
2015-07-12 05:30:13 +02:00
parent 4ead42f4e3
commit d5a153bbe3
3 changed files with 6 additions and 0 deletions

2
kike.c
View File

@@ -3113,6 +3113,7 @@ irc_try_read_ssl (struct client *c)
while (true)
{
str_ensure_space (buf, 512);
ERR_clear_error ();
int n_read = SSL_read (c->ssl, buf->str + buf->len,
buf->alloc - buf->len - 1 /* null byte */);
@@ -3179,6 +3180,7 @@ irc_try_write_ssl (struct client *c)
c->ssl_tx_want_rx = false;
while (buf->len)
{
ERR_clear_error ();
int n_written = SSL_write (c->ssl, buf->str, buf->len);
const char *error_info = NULL;