From: Vsevolod Stakhov Date: Mon, 14 Mar 2016 09:32:22 +0000 (+0000) Subject: [Fix] Fix potential HTTP connection structure corruption X-Git-Tag: 1.2.0~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=528beaf4c207ec0e80e16729ff1ddaf74b948050;p=thirdparty%2Frspamd.git [Fix] Fix potential HTTP connection structure corruption Issue: #550 Reported by: @moisseev --- diff --git a/src/libutil/map.c b/src/libutil/map.c index 377154b8f8..ee84f4b419 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) {