TLS: fix startup after forced-fail
[exim.git] / src / src / tls.c
index b6c5d70e123009e08e0abdac05556b98fb30cb82..e6203b7688afe70a842e2ae87cdfb545ea5c4850 100644 (file)
@@ -105,7 +105,10 @@ expand_check(const uschar * s, const uschar * name,
   uschar ** result, uschar ** errstr)
 {
 if (!s)
+  {
+  f.expand_string_forcedfail = FALSE;
   *result = NULL;
+  }
 else if (  !(*result = expand_string(US s)) /* need to clean up const more */
        && !f.expand_string_forcedfail
        )