Fix post-transport-crash.
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Wed, 19 Aug 2015 13:22:41 +0000 (15:22 +0200)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Wed, 19 Aug 2015 13:24:45 +0000 (15:24 +0200)
The crash probably was introduced in a39bd74d3e94 and
needs 'split_spool_directory=yes' to expose.

Thanks to Wolfgang Breyha, who found the same fix.

src/src/transport.c

index fa6f869cdfdeb455cf102ef082ea96479549e1e5..a6ad3ed345ebb0a458364ac119a228e21b2e9321 100644 (file)
@@ -1752,7 +1752,7 @@ while (1)
     {
     if (split_spool_directory)
        sprintf(CS spool_file, "%s%c/%s-D",
-                     spool_dir, new_message_id[5], msgq[i].message_id);
+                     spool_dir, msgq[i].message_id[5], msgq[i].message_id);
     else
        sprintf(CS spool_file, "%s%s-D", spool_dir, msgq[i].message_id);