From 9031f51a298749869af8c082bad850eb103db09a Mon Sep 17 00:00:00 2001 From: Wolfgang Breyha Date: Mon, 15 Jun 2015 14:52:36 +0100 Subject: [PATCH] DSN: fix null deref when bounce is due to conn-timeout. Bug 1630 --- src/src/deliver.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/src/deliver.c b/src/src/deliver.c index 2ee71f502..ec030fefb 100644 --- a/src/src/deliver.c +++ b/src/src/deliver.c @@ -4876,17 +4876,8 @@ if (s) s += 2; /* skip ": " */ fprintf(f, "Diagnostic-Code: smtp; "); } -/* user_message set? use it instead */ -else if ((s = addr->user_message)) - { - DEBUG(D_deliver) - debug_printf("DSN Diagnostic-Code: addr->user_message = %s\n", s); - /* local errors like timeout get 426 */ - fprintf(f, "Diagnostic-Code: smtp; 426 "); - } /* no message available. do nothing */ -else - return; +else return; while (*s) if (*s == '\\' && s[1] == 'n') -- 2.25.1