Fix crash on empty -oMt argument. Bug 3070
[exim.git] / src / src / smtp_in.c
index ff768e94c02ca15e2a6e532cb4217f5be70fb5ae..f62d6fbf2ebfcb7e837a7b092509f8d1af00449f 100644 (file)
@@ -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)");