Revert introduction of alloc_insecure_tainted_data
[exim.git] / src / src / transports / smtp.c
index 7d5eb35a5245c6e6ba5eadfff7c2f834107a91fd..d36e95ce5882204431b79246b6ed663eddbbfec1 100644 (file)
@@ -5090,8 +5090,11 @@ if (!hostlist || (ob->hosts_override && ob->hosts))
     else
       if (ob->hosts_randomize) s = expanded_hosts = string_copy(s);
 
-    if (is_tainted2(s, LOG_MAIN|LOG_PANIC, "Tainted host list '%s' from '%s' in transport %s", s, ob->hosts, tblock->name))
+    if (is_tainted(s))
       {
+      log_write(0, LOG_MAIN|LOG_PANIC,
+       "attempt to use tainted host list '%s' from '%s' in transport %s",
+       s, ob->hosts, tblock->name);
       /* Avoid leaking info to an attacker */
       addrlist->message = US"internal configuration error";
       addrlist->transport_return = PANIC;