]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Minor Oracle fixes
authorNick Porter <nick@portercomputing.co.uk>
Wed, 31 Jan 2024 17:51:19 +0000 (17:51 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 1 Feb 2024 14:36:44 +0000 (14:36 +0000)
src/modules/rlm_sql/drivers/rlm_sql_oracle/rlm_sql_oracle.c

index aaf327d37db4dba3f8cff824454005f39b35bd32..dbc618f877e16611086a524dd4e31b384e55c655 100644 (file)
@@ -210,11 +210,11 @@ static int mod_bootstrap(module_inst_ctx_t const *mctx)
        /*
         *      Create session pool
         */
-       DEBUG("OCISessionPoolCreate min=%d max=%d inc=%d", inst->spool_min, inst->spool_max, inst->spool_inc);
+       DEBUG2("OCISessionPoolCreate min=%d max=%d inc=%d", inst->spool_min, inst->spool_max, inst->spool_inc);
 
        /* We need it to fix const issues between 'const char *' vs 'unsigned char *' */
-       memcpy(&sql_login, config->sql_login, sizeof(sql_login));
-       memcpy(&sql_password, config->sql_password, sizeof(sql_password));
+       memcpy(&sql_login, &config->sql_login, sizeof(sql_login));
+       memcpy(&sql_password, &config->sql_password, sizeof(sql_password));
 
        if (OCISessionPoolCreate((dvoid *)inst->env, (dvoid *)inst->error, (dvoid *)inst->pool,
                                 (OraText**)&inst->pool_name, (ub4*)&inst->pool_name_len,