]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Avoid double free if cannot load message.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 2 Jul 2015 18:02:14 +0000 (19:02 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 2 Jul 2015 18:02:14 +0000 (19:02 +0100)
src/worker.c

index 5c1fc396f9ef742372f8205efd695cb8f774a966..ba322d51e627f50290ec3303d7961a4298f41f48 100644 (file)
@@ -115,7 +115,6 @@ rspamd_worker_body_handler (struct rspamd_http_connection *conn,
        }
 
        if (!rspamd_task_load_message (task, msg, chunk, len)) {
-               rspamd_session_destroy (task->s);
                return 0;
        }