TLS resumption: disable on continued-connection
[exim.git] / src / src / tls-openssl.c
index 7643c4c363f5455046479a0083d82a8fb524a363..8770699535f0fcf3c1d488cc15e84b6e5d3fc3f2 100644 (file)
@@ -4024,7 +4024,10 @@ if (ob->tls_alpn)
 #endif
 
 #ifndef DISABLE_TLS_RESUME
-if (verify_check_given_host(CUSS &ob->tls_resumption_hosts, host) == OK)
+if (continue_hostname) /* no host_lbserver available for tls_client_resmption_key() */
+                       /*XXX another cmdline arg possibly, but use will be very low */
+  { DEBUG(D_tls) debug_printf("resumption not supported on continued-connection\n"); }
+else if (verify_check_given_host(CUSS &ob->tls_resumption_hosts, host) == OK)
   tls_client_ctx_resume_prehandshake(exim_client_ctx, conn_args, tlsp, ob);
 #endif