TLS resumption: disable on continued-connection
[exim.git] / src / src / tls-gnu.c
index 30c8d40c0f10cdb4e93d7bfa87a8c66fccce49c7..6737a9a2010d48f429daaba274a5fbfdef9811c2 100644 (file)
@@ -3277,7 +3277,10 @@ tls_retrieve_session(tls_support * tlsp, gnutls_session_t session,
   smtp_connect_args * conn_args, smtp_transport_options_block * ob)
 {
 tlsp->resumption = RESUME_SUPPORTED;
-if (verify_check_given_host(CUSS &ob->tls_resumption_hosts, conn_args->host) == OK)
+
+if (continue_hostname) /* no host_lbserver available for tls_client_resmption_key() */
+  { DEBU(D_tls) debug_printf("resumption not supported on continued-connection\n"); }
+else if (verify_check_given_host(CUSS &ob->tls_resumption_hosts, conn_args->host) == OK)
   {
   dbdata_tls_session * dt;
   int len, rc;