This looks a bit strange to me but I keep it for referende
  --drt@un.bewaff.net

From: disastry@hackserv.saiknes.lv
Subject: [Remops] bug in mix.
Newsgroups: cbone.ml.remailer-operators
Date: Mon, 15 Oct 2001 10:48:41 +0200
Organization: Mailsort Mail/News Gateway
Reply-To: remops@lexx.shinn.net

because of bug in mix, it crached and dismix was down for 22h.

here is a patch:

--- pool.c.old  Mon Oct 15 10:42:47 2001
+++ pool.c      Mon Oct 15 08:04:30 2001
@@ -438,6 +438,7 @@
   mid = buf_new();
   mboundary = buf_new();
   out = buf_new();
+  block = NULL;

   if (SIZELIMIT > 0 && in->length > SIZELIMIT * 1024) {
     errlog(NOTICE, "Message rejected: %ld bytes\n", in->length);
@@ -573,7 +574,7 @@
   buf_free(out);
   buf_free(line);
   buf_free(line2);
 buf_free(block);
+  if (block) buf_free(block);
   buf_free(filter);
   buf_free(mid);
   buf_free(mboundary);


