Fix taint-handling in rDNS name construction
[exim.git] / src / src / acl.c
index 8e34513d0f22aaab950960232e5802153695e12d..799af39c3e72fefa9570cfda5bd6282d186c3cda 100644 (file)
@@ -1345,8 +1345,7 @@ extension to CSA, so we allow it to be turned off for proper conformance. */
 if (string_is_ip_address(domain, NULL) != 0)
   {
   if (!dns_csa_use_reverse) return CSA_UNKNOWN;
-  dns_build_reverse(domain, target);
-  domain = target;
+  domain = dns_build_reverse(domain);
   }
 
 /* Find out if we've already done the CSA check for this domain. If we have,