oops.
messages were
>DEBUG: delnum == 0
>DEBUG: concurrency[0] == 30
and
>DEBUG: delnum == 17732
>DEBUG: concurrency[0] == 30
30 means my current local concurrency
the patch of course is
--- qmail-send-orig.c Mon Apr 8 11:26:36 2002
+++ qmail-send.c Mon Apr 8 11:26:12 2002
@@ -31,6 +31,10 @@
#include "constmap.h"
#include "fmtqfn.h"
#include "readsubdir.h"
+//just for debugging - not qmail style
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
/* critical timing feature #1: if not triggered, do not busy-loop */
/* critical timing feature #2: if triggered, respond within fixed time */
@@ -935,6 +939,18 @@
{
delnum = (unsigned int) (unsigned char) dline[c].s[0];
delnum += (unsigned int) ((unsigned int) dline[c].s[1]) << 8;
+
+ {
+ char *debugstr1 = malloc(1024);
+ char *debugstr2 = malloc(1024);
+ snprintf(debugstr1, 1024, "DEBUG: delnum == %d\n", delnum);
+ snprintf(debugstr2, 1024, "DEBUG: concurrency[%d] ==
%d\n",c, concurrency[c] );
+ log1(debugstr1);
+ log1(debugstr2);
+ free(debugstr1);
+ free(debugstr2);
+ }
if ((delnum < 0) || (delnum >= concurrency[c]) || !d[c][delnum].used)
log1("warning: internal error: delivery report out of range\n");
else