]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Do not use http entry after freeing it.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 22 Apr 2014 16:22:24 +0000 (17:22 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 22 Apr 2014 16:22:24 +0000 (17:22 +0100)
src/libutil/http.c

index 3fa4bd3a8844fa6823ed3eb070b0d76e03225eed..1e4ceae1f039636053b0f88588777b9727ce5153 100644 (file)
@@ -952,10 +952,10 @@ rspamd_http_entry_free (struct rspamd_http_connection_entry *entry)
        if (entry != NULL) {
                close (entry->conn->fd);
                rspamd_http_connection_unref (entry->conn);
-               g_slice_free1 (sizeof (struct rspamd_http_connection_entry), entry);
                if (entry->rt->finish_handler) {
                        entry->rt->finish_handler (entry);
                }
+               g_slice_free1 (sizeof (struct rspamd_http_connection_entry), entry);
        }
 }