]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix potential HTTP connection structure corruption
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 Mar 2016 09:32:22 +0000 (09:32 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 Mar 2016 09:32:22 +0000 (09:32 +0000)
Issue: #550
Reported by: @moisseev

src/libutil/map.c

index 377154b8f8d9ec72ea15a4eb3dcfe283f9634bac..ee84f4b4195575d60e6e299658a2ce4ebf1e4d0d 100644 (file)
@@ -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) {