TLS: rework error logging to pass more string back to caller for logging
[users/jgh/exim.git] / src / src / readconf.c
index 55bba4c05317f9bee419c86cb6060038938cdb8a..7751b3607847d92557699b94e22d122d82a829a3 100644 (file)
@@ -3251,12 +3251,9 @@ if (pid == 0)
     exim_setugid(exim_uid, exim_gid, FALSE,
         US"calling tls_validate_require_cipher");
 
-  errmsg = tls_validate_require_cipher();
-  if (errmsg)
-    {
+  if ((errmsg = tls_validate_require_cipher()))
     log_write(0, LOG_PANIC_DIE|LOG_CONFIG,
         "tls_require_ciphers invalid: %s", errmsg);
-    }
   fflush(NULL);
   _exit(0);
   }