Fix canceling query with TLS-requiring connections (#111)

This commit is contained in:
Andrey Borodin 2020-01-28 14:23:38 +05:00 committed by GitHub
parent 60d7229cdc
commit 5ed39fa2df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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: