Skip to content

Commit

Permalink
rlm_cache: Fix sanity check for driver name (#3371)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpereira committed Apr 13, 2020
1 parent a4b2813 commit bf4d9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/rlm_cache/rlm_cache.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit bf4d9df

Please sign in to comment.