On 21-Feb-2004 15:43 Alan DeKok wrote:
| Derek Orpen <[EMAIL PROTECTED]> wrote:
| > In any case, I created a special build of freeradius that works with
| > the HP client and was able to complete my testing. Thanks for pointing
| > me in the right direction.
| 
|   That's what I'm here for.
| 
|   Can you post a patch, so others don't run into the same issue?
| 
|   Alan DeKok.
| 
| - 
| List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Okay, here's the patch. I'm not sure it's in the format you usually use,
or if it's even the ideal way to fix this issue. But it works for me.

- Derek
--- freeradius-snapshot-20040223/src/modules/rlm_eap/mem.c      Wed Nov 26 13:51:32 
2003
+++ freeradius-snapshot-20040223-patch/src/modules/rlm_eap/mem.c        Tue Feb 24 
11:49:30 2004
@@ -315,7 +315,7 @@
                 *      timeout, as they're guaranteed to be newer than
                 *      the one we found.
                 */
-               if ((node->eap_id == eap_packet->id) &&
+               if ((node->eap_id == eap_packet->id || eap_packet->id == 0) &&
                    (node->src_ipaddr == request->packet->src_ipaddr) &&
                    (memcmp(node->state, state->strvalue, state->length) == 0)) {
                        /*

Reply via email to