]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
No need to populate buffer with driver name
authorNick Porter <nick@portercomputing.co.uk>
Tue, 17 Dec 2024 21:28:10 +0000 (21:28 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 18 Dec 2024 18:40:35 +0000 (18:40 +0000)
Was being used in pool initialisation, now buffer is just for error
messages.

src/modules/rlm_cache/drivers/rlm_cache_memcached/rlm_cache_memcached.c

index 50cb2f94c81d9c87d19c22526890904ddd39f58b..18ed180858f16f7463b37c21944e1bfdfd61c244 100644 (file)
@@ -126,8 +126,6 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
        char                            buffer[256];
        rlm_cache_t const               *inst = talloc_get_type_abort(mctx->mi->parent->data, rlm_cache_t);
 
-       snprintf(buffer, sizeof(buffer), "rlm_cache (%s)", mctx->mi->parent->name);
-
        ret = libmemcached_check_configuration(driver->options, talloc_array_length(driver->options) -1,
                                               buffer, sizeof(buffer));
        if (ret != MEMCACHED_SUCCESS) {