From 5ed39fa2dfcdcecee506a670813a3ada0319a8d9 Mon Sep 17 00:00:00 2001 From: Andrey Borodin Date: Tue, 28 Jan 2020 14:23:38 +0500 Subject: [PATCH] Fix canceling query with TLS-requiring connections (#111) --- sources/tls.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sources/tls.c b/sources/tls.c index add33bd5..9004df91 100644 --- a/sources/tls.c +++ b/sources/tls.c @@ -113,6 +113,11 @@ od_tls_frontend_accept(od_client_t *client, od_debug(logger, "tls", client, NULL, "ok"); return 0; } + + /* Client sends cancel request without encryption */ + if (client->startup.is_cancel) + return 0; + switch (config->tls_mode) { case OD_CONFIG_TLS_DISABLE: case OD_CONFIG_TLS_ALLOW: