Alloc handlers from the NULL context
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 20 Jun 2014 19:12:55 +0000 (20:12 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 20 Jun 2014 19:13:01 +0000 (20:13 +0100)
src/modules/rlm_eap/mem.c

index 44d786c..c6e6c03 100644 (file)
@@ -115,7 +115,7 @@ eap_handler_t *eap_handler_alloc(rlm_eap_t *inst)
        eap_handler_t   *handler;
 
        PTHREAD_MUTEX_LOCK(&(inst->handler_mutex));
-       handler = talloc_zero(inst, eap_handler_t);
+       handler = talloc_zero(NULL, eap_handler_t);
        if (inst->handler_tree) {
                if (!rbtree_insert(inst->handler_tree, handler)) {
                        ERROR("Failed inserting EAP handler into handler tree");