]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
rlm_cache: Fix sanity check for driver name (#3371)
authorJorge Pereira <jpereira@users.noreply.github.com>
Mon, 13 Apr 2020 15:00:51 +0000 (12:00 -0300)
committerGitHub <noreply@github.com>
Mon, 13 Apr 2020 15:00:51 +0000 (10:00 -0500)
src/modules/rlm_cache/rlm_cache.c

index d40c27d88a4eade78149b6e25578db7fa82f61e2..07fa098f45fd106d4beaa6e681ebab2d6583137a 100644 (file)
@@ -715,7 +715,7 @@ static int mod_instantiate(CONF_SECTION *conf, void *instance)
        /*
         *      Sanity check for crazy people.
         */
-       if (strncmp(inst->driver_name, "rlm_cache_", 8) != 0) {
+       if (strncmp(inst->driver_name, "rlm_cache_", 10) != 0) {
                cf_log_err_cs(conf, "\"%s\" is NOT an Cache driver!", inst->driver_name);
                return -1;
        }