odissey: do not close client tls connection if disable

This commit is contained in:
Dmitry Simonenko 2017-09-04 15:22:26 +03:00
parent 1603e84ae3
commit a663bd8897
1 changed files with 2 additions and 4 deletions

View File

@ -107,10 +107,8 @@ od_tls_frontend_accept(od_client_t *client,
machine_error(client->io));
return -1;
}
od_log_client(logger, &client->id, "tls", "disabled, closing");
od_frontend_error(client, SHAPITO_FEATURE_NOT_SUPPORTED,
"SSL is not supported");
return -1;
od_debug_client(logger, &client->id, "tls", "is disabled, ignoring");
return 0;
}
/* supported 'S' */
shapito_stream_write8(stream, 'S');