diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-25 14:49:19 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-25 14:49:19 +0000 |
commit | 5a2f44f27d4f9abe6d0abe79f2f7e6e6bc0e23b1 (patch) | |
tree | 51d35b7620cd4ad76e5d52a849730c951eaf9412 /src/libutil/http.c | |
parent | f7466e9e3871de4a71c217a38b208ff364349045 (diff) | |
download | rspamd-5a2f44f27d4f9abe6d0abe79f2f7e6e6bc0e23b1.tar.gz rspamd-5a2f44f27d4f9abe6d0abe79f2f7e6e6bc0e23b1.zip |
[Minor] Fix removing of HTTP event
Diffstat (limited to 'src/libutil/http.c')
-rw-r--r-- | src/libutil/http.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c index 7f749b869..8796963f1 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -1355,7 +1355,11 @@ rspamd_http_connection_reset (struct rspamd_http_connection *conn) /* Clear priv */ if (!(priv->flags & RSPAMD_HTTP_CONN_FLAG_RESETED)) { - event_del (&priv->ev); + + if (event_get_base (&priv->ev)) { + event_del (&priv->ev); + } + rspamd_http_parser_reset (conn); } |