Correct checking of connection validation result.

This commit is contained in:
Jim Hague 2018-12-06 11:04:00 +00:00
parent c6dffa1239
commit 91764fb6b0
1 changed files with 1 additions and 1 deletions

View File

@ -957,7 +957,7 @@ tls_do_handshake(getdns_upstream *upstream)
long verify_errno;
const char* verify_errmsg;
if (!_getdns_tls_connection_verify(upstream->tls_obj, &verify_errno, &verify_errmsg)) {
if (_getdns_tls_connection_verify(upstream->tls_obj, &verify_errno, &verify_errmsg)) {
upstream->tls_auth_state = GETDNS_AUTH_OK;
if (verify_errno != 0) {
_getdns_upstream_log(upstream,