Skip to content

Commit

Permalink
disable fail open by default
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-hx committed Oct 10, 2024
1 parent 424249c commit 723fd4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ SF_CONNECT *STDCALL snowflake_init() {
sf->passcode = NULL;
sf->passcode_in_password = SF_BOOLEAN_FALSE;
sf->insecure_mode = SF_BOOLEAN_FALSE;
sf->ocsp_fail_open = SF_BOOLEAN_TRUE;
sf->ocsp_fail_open = SF_BOOLEAN_FALSE;
sf->autocommit = SF_BOOLEAN_TRUE;
sf->qcc_disable = SF_BOOLEAN_FALSE;
sf->include_retry_reason = SF_BOOLEAN_TRUE;
Expand Down Expand Up @@ -1078,7 +1078,7 @@ SF_STATUS STDCALL snowflake_set_attribute(
sf->insecure_mode = value ? *((sf_bool *) value) : SF_BOOLEAN_FALSE;
break;
case SF_CON_OCSP_FAIL_OPEN:
sf->ocsp_fail_open = value ? *((sf_bool*)value) : SF_BOOLEAN_TRUE;
sf->ocsp_fail_open = value ? *((sf_bool*)value) : SF_BOOLEAN_FALSE;
break;
case SF_CON_LOGIN_TIMEOUT:
sf->login_timeout = value ? *((int64 *) value) : SF_LOGIN_TIMEOUT;
Expand Down

0 comments on commit 723fd4e

Please sign in to comment.