diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-14 09:32:22 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-14 09:32:22 +0000 |
commit | 528beaf4c207ec0e80e16729ff1ddaf74b948050 (patch) | |
tree | 328133f1bcf603f492830b52159a6049af8a5597 /src/libutil/map.c | |
parent | b018145a8b6dfacd2845d21c0c9b7f5dc6337ba3 (diff) | |
download | rspamd-528beaf4c207ec0e80e16729ff1ddaf74b948050.tar.gz rspamd-528beaf4c207ec0e80e16729ff1ddaf74b948050.zip |
[Fix] Fix potential HTTP connection structure corruption
Issue: #550
Reported by: @moisseev
Diffstat (limited to 'src/libutil/map.c')
-rw-r--r-- | src/libutil/map.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c index 377154b8f..ee84f4b41 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -215,7 +215,8 @@ free_http_cbdata (struct http_callback_data *cbd) } if (cbd->conn) { - rspamd_http_connection_free (cbd->conn); + rspamd_http_connection_unref (cbd->conn); + cbd->conn = NULL; } if (cbd->fd != -1) { |