summaryrefslogtreecommitdiff
path: root/kike.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-07-12 05:30:13 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-07-12 05:30:13 +0200
commitd5a153bbe3134a37dc4bcee0ab9a10c4b59f8d2e (patch)
tree3c6844ec247f849111af80dac1bea5959f361e10 /kike.c
parent4ead42f4e351a637e0ffb64a56075d6c5fadeea2 (diff)
downloadxK-d5a153bbe3134a37dc4bcee0ab9a10c4b59f8d2e.tar.gz
xK-d5a153bbe3134a37dc4bcee0ab9a10c4b59f8d2e.tar.xz
xK-d5a153bbe3134a37dc4bcee0ab9a10c4b59f8d2e.zip
Call ERR_clear_error() where necessary
Diffstat (limited to 'kike.c')
-rw-r--r--kike.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kike.c b/kike.c
index 43d16bf..d2766d7 100644
--- a/kike.c
+++ b/kike.c
@@ -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;