einot / gross

Automatically exported from code.google.com/p/gross
Other
1 stars 2 forks source link

Double free() with milter #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure --enable-milter
2. configure sendmail to query grossd via milter protocol

Tue May  6 17:56:36 2008 #806d800: dnsblc returning
grossd in free(): warning: chunk is already free

Original issue reported on code.google.com by eino.tuominen@gmail.com on 6 May 2008 at 3:39

GoogleCodeExporter commented 9 years ago
Fixed in svn:

Index: src/worker_milter.c
===================================================================
--- src/worker_milter.c (revision 391)
+++ src/worker_milter.c (working copy)
@@ -130,7 +130,7 @@
    tuple->recipient = strdup(argv[0]);
    tuple->client_address = strdup(priv->client_address);
    if (priv->helo_name)
-       tuple->helo_name = priv->helo_name;
+       tuple->helo_name = strdup(priv->helo_name);

    ret = test_tuple(status, tuple, NULL);
    request_unlink(tuple);

Original comment by eino.tuominen@gmail.com on 6 May 2008 at 3:40