From 528beaf4c207ec0e80e16729ff1ddaf74b948050 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 14 Mar 2016 09:32:22 +0000 Subject: [PATCH] [Fix] Fix potential HTTP connection structure corruption Issue: #550 Reported by: @moisseev --- src/libutil/map.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.39.5