]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Should be inst not data
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 12 Mar 2013 01:25:05 +0000 (21:25 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 12 Mar 2013 19:06:49 +0000 (15:06 -0400)
src/modules/rlm_example/rlm_example.c

index 2162aea9a2fbde54cee580e4c6d82c5459277a71..758a4601b42ee9da28b0cb08e6ee961d537463ef 100644 (file)
@@ -72,19 +72,19 @@ static const CONF_PARSER module_config[] = {
  */
 static int example_instantiate(CONF_SECTION *conf, void **instance)
 {
-       rlm_example_t *data;
+       rlm_example_t *inst;
 
        /*
         *      Set up a storage area for instance data
         */
-       *instance = data = talloc_zero(conf, rlm_example_t);
-       if (!data) return -1;
+       *instance = inst = talloc_zero(conf, rlm_example_t);
+       if (!inst) return -1;
 
        /*
         *      If the configuration parameters can't be parsed, then
         *      fail.
         */
-       if (cf_section_parse(conf, data, module_config) < 0) {
+       if (cf_section_parse(conf, inst, module_config) < 0) {
                return -1;
        }