Rbtree shouldn't be allocated from inst
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 20 Jun 2014 19:17:05 +0000 (20:17 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 20 Jun 2014 19:17:11 +0000 (20:17 +0100)
src/modules/rlm_securid/rlm_securid.c

index 81a39b5..79a81b1 100644 (file)
@@ -436,7 +436,7 @@ static int mod_instantiate(UNUSED CONF_SECTION *conf, void *instance)
         *      Lookup sessions in the tree.  We don't free them in
         *      the tree, as that's taken care of elsewhere...
         */
-       inst->session_tree = rbtree_create(inst, securid_session_cmp, NULL, 0);
+       inst->session_tree = rbtree_create(NULL, securid_session_cmp, NULL, 0);
        if (!inst->session_tree) {
                ERROR("rlm_securid: Cannot initialize session tree");
                return -1;