Fix typo in cache config item name
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 15 Jan 2013 17:45:09 +0000 (17:45 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 15 Jan 2013 17:45:09 +0000 (17:45 +0000)
raddb/mods-available/cache
src/modules/rlm_cache/rlm_cache.c

index 07c0722..a4388ec 100644 (file)
@@ -57,7 +57,7 @@ cache {
        #  If yes the following attributes will be added to the request list:
        #       * Cache-Entry-Hits - The number of times this entry has been
        #                            retrieved.
-       add-stats = no
+       add_stats = no
 
        #  The list of attributes to cache for a particular key.
        #  Each key gets the same set of cached attributes.
index 4c3f6e5..c71dbd6 100644 (file)
@@ -525,7 +525,7 @@ static const CONF_PARSER module_config[] = {
          offsetof(rlm_cache_t, ttl), NULL, "500" },
        { "epoch", PW_TYPE_INTEGER,
          offsetof(rlm_cache_t, epoch), NULL, "0" },
-       { "add-stats", PW_TYPE_BOOLEAN,
+       { "add_stats", PW_TYPE_BOOLEAN,
          offsetof(rlm_cache_t, stats), NULL, "no" },
 
        { NULL, -1, 0, NULL, NULL }             /* end the list */