need patch to inst->session_tail clear ?

blue_11j at yahoo.co.jp blue_11j at yahoo.co.jp
Fri Dec 7 11:53:42 CET 2007


Hi,
  I'm *sorry* that I am not good at English
  because I'm Japanese....

I think that it is need following patch for eaplist_find()
in rlm_eap/mem.c, FreeRADIUS 1.1.7.
if no patch, when session_head == NULL and session_tail != NULL,
add handler to TAIL in next eaplist_add().
How do you think about it?

------------------------
diff -urN ../freeradius-1.1.7/src/modules/rlm_eap/mem.c
./src/modules/rlm_eap/mem.c
--- ../freeradius-1.1.7/src/modules/rlm_eap/mem.c   2007-02-10
00:42:03.000000000 +0900
+++ ./src/modules/rlm_eap/mem.c 2007-12-07 12:32:23.000000000 +0900
@@ -301,6 +301,9 @@
            rbtree_delete(inst->session_tree, node);

            inst->session_head = handler->next;
+           //--- 2007/12/07 added ---------------
+           if(!inst->session_head) inst->session_tail = NULL;
+           //------------------------------------
            if (handler->next) handler->next->prev = NULL;
            eap_handler_free(handler);
        }

------------------------


--------------------------------------
New Design Yahoo! JAPAN  2008/01/01
http://pr.mail.yahoo.co.jp/newdesign/



More information about the Freeradius-Users mailing list