Transport: permit an empty string for the transport_filter option. Bug 1714
[exim.git] / src / src / transport.c
index 62cbdc632a1d6f3ca4dc596bd9a65655858d7778..e77479b971b365610c3410164531befb6c99dd90 100644 (file)
@@ -1213,7 +1213,10 @@ transport_filter_timed_out = FALSE;
 /* If there is no filter command set up, call the internal function that does
 the actual work, passing it the incoming fd, and return its result. */
 
-if (transport_filter_argv == NULL)
+if (  !transport_filter_argv
+   || !*transport_filter_argv
+   || !**transport_filter_argv
+   )
   return internal_transport_write_message(addr, fd, options, size_limit,
     add_headers, remove_headers, check_string, escape_string,
     rewrite_rules, rewrite_existflags);