]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Try to fix mess
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 19 Jul 2019 18:46:25 +0000 (19:46 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 19 Jul 2019 18:46:25 +0000 (19:46 +0100)
src/libutil/ssl_util.c

index 7d4612b3d4b07515cdb3328c4915d7d21d1bd25c..54322918c989fdc8c8415efbf84c8ed7b757cb43 100644 (file)
@@ -668,7 +668,7 @@ rspamd_ssl_write (struct rspamd_ssl_connection *conn, gconstpointer buf,
        }
        else {
                ret = SSL_get_error (conn->ssl, ret);
-               conn->state = ssl_next_read;
+               conn->state = ssl_next_write;
 
                if (ret == SSL_ERROR_WANT_READ) {
                        what = EV_READ;