From: Nick Porter Date: Fri, 6 Sep 2024 12:35:36 +0000 (+0100) Subject: SQL drivers that don't have connection_notify are always writable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dcbf306ebf2a51fb9fd8a18b7258ebd0bcbe41d;p=thirdparty%2Ffreeradius-server.git SQL drivers that don't have connection_notify are always writable --- diff --git a/src/modules/rlm_sql/rlm_sql.c b/src/modules/rlm_sql/rlm_sql.c index b78500894e3..61f677744d1 100644 --- a/src/modules/rlm_sql/rlm_sql.c +++ b/src/modules/rlm_sql/rlm_sql.c @@ -2172,6 +2172,9 @@ static int mod_instantiate(module_inst_ctx_t const *mctx) */ inst->config.trunk_conf.target_req_per_conn = 1; inst->config.trunk_conf.max_req_per_conn = 1; + if (!inst->driver->trunk_io_funcs.connection_notify) { + inst->config.trunk_conf.always_writable = true; + } return 0; }