Correct error checking result of _getdns_tls_context_set_ca().

This commit is contained in:
Jim Hague 2018-11-20 15:12:10 +00:00
parent 1b0a09a23f
commit 52421be5f4
1 changed files with 1 additions and 1 deletions

View File

@ -3568,7 +3568,7 @@ _getdns_context_prepare_for_resolution(getdns_context *context)
/* For strict authentication, we must have local root certs available
Set up is done only when the tls_ctx is created (per getdns_context)*/
if (!_getdns_tls_context_set_ca(context->tls_ctx, context->tls_ca_file, context->tls_ca_path)) {
if (_getdns_tls_context_set_ca(context->tls_ctx, context->tls_ca_file, context->tls_ca_path)) {
if (context->tls_auth_min == GETDNS_AUTHENTICATION_REQUIRED)
return GETDNS_RETURN_BAD_CONTEXT;
}