]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use CS_SET to set things
authorNick Porter <nick@portercomputing.co.uk>
Tue, 30 Jul 2024 16:05:03 +0000 (17:05 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 30 Jul 2024 16:05:03 +0000 (17:05 +0100)
src/modules/rlm_sql/drivers/rlm_sql_freetds/rlm_sql_freetds.c

index d8266bd7df5e91908de9d1464137e46938210b1a..9047ceeb3f7485672f31ec0c1649d1a62e1cbc6f 100644 (file)
@@ -727,7 +727,7 @@ static sql_rcode_t sql_socket_init(rlm_sql_handle_t *handle, rlm_sql_config_t co
                goto error;
        }
 
-       if (ct_config(conn->context, CS_GET, CS_LOGIN_TIMEOUT, (CS_VOID *)&timeout_ms, CS_UNUSED, NULL) != CS_SUCCEED) {
+       if (ct_config(conn->context, CS_SET, CS_LOGIN_TIMEOUT, (CS_VOID *)&timeout_ms, CS_UNUSED, NULL) != CS_SUCCEED) {
                ERROR("Setting connection timeout failed");
 
                goto error;