[exim-cvs] Fix crash on empty -oMt argument. Bug 3070

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] Fix crash on empty -oMt argument. Bug 3070
Gitweb: https://git.exim.org/exim.git/commitdiff/f9609304cd7ffe553e3da325287973a0b2a4446c
Commit:     f9609304cd7ffe553e3da325287973a0b2a4446c
Parent:     443245384239776d29f5386050f56247c7404c1e
Author:     Heiko Schlichting <heiko@???>
AuthorDate: Thu Feb 29 19:26:48 2024 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Thu Feb 29 19:26:48 2024 +0000


    Fix crash on empty -oMt argument.  Bug 3070
---
 src/src/smtp_in.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c
index ff768e94c..f62d6fbf2 100644
--- a/src/src/smtp_in.c
+++ b/src/src/smtp_in.c
@@ -1352,7 +1352,7 @@ if (host_checking)
g = string_cat(g, hostname);

else if (f.sender_host_unknown || f.sender_host_notsocket)
- g = string_cat(g, sender_ident);
+ g = string_cat(g, sender_ident ? sender_ident : US"NULL");

else if (f.is_inetd)
g = string_append(g, 2, hostname, US" (via inetd)");

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-cvs.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-cvs-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/