"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/modules/rlm_eap/mem.c" between
freeradius-server-3.0.22.tar.bz2 and freeradius-server-3.0.23.tar.bz2

About: FreeRADIUS Server Project - a high performance and highly configurable RADIUS server.

mem.c  (freeradius-server-3.0.22.tar.bz2):mem.c  (freeradius-server-3.0.23.tar.bz2)
/* /*
* mem.c Memory allocation, deallocation stuff. * mem.c Memory allocation, deallocation stuff.
* *
* Version: $Id: 15f3569c77f8edea2215c4e3ada3af7b75b8c121 $ * Version: $Id: 6be8ca4af78f039850e5eb24bc572b9dc512b288 $
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* *
* Copyright 2000,2001,2006 The FreeRADIUS server project * Copyright 2000,2001,2006 The FreeRADIUS server project
* Copyright 2001 hereUare Communications, Inc. <raghud@hereuare.com> * Copyright 2001 hereUare Communications, Inc. <raghud@hereuare.com>
*/ */
RCSID("$Id: 15f3569c77f8edea2215c4e3ada3af7b75b8c121 $") RCSID("$Id: 6be8ca4af78f039850e5eb24bc572b9dc512b288 $")
#include <stdio.h> #include <stdio.h>
#include "rlm_eap.h" #include "rlm_eap.h"
#ifdef WITH_TLS #ifdef WITH_TLS
#include <freeradius-devel/tls.h> #include <freeradius-devel/tls.h>
#endif #endif
#ifdef HAVE_PTHREAD_H #ifdef HAVE_PTHREAD_H
#define PTHREAD_MUTEX_LOCK pthread_mutex_lock #define PTHREAD_MUTEX_LOCK pthread_mutex_lock
skipping to change at line 347 skipping to change at line 347
sizeof(lvalue)); sizeof(lvalue));
} }
} }
/* /*
* Add some more data to distinguish the sessions. * Add some more data to distinguish the sessions.
*/ */
handler->state[4] = handler->trips ^ handler->state[0]; handler->state[4] = handler->trips ^ handler->state[0];
handler->state[5] = handler->eap_id ^ handler->state[1]; handler->state[5] = handler->eap_id ^ handler->state[1];
handler->state[6] = handler->type ^ handler->state[2]; handler->state[6] = handler->type ^ handler->state[2];
handler->state[12] = handler->state[2] ^ (RADIUSD_VERSION & 0xff);
fr_pair_value_memcpy(state, handler->state, sizeof(handler->state)); fr_pair_value_memcpy(state, handler->state, sizeof(handler->state));
/* /*
* Big-time failure. * Big-time failure.
*/ */
status = rbtree_insert(inst->session_tree, handler); status = rbtree_insert(inst->session_tree, handler);
if (status) { if (status) {
eap_handler_t *prev; eap_handler_t *prev;
 End of changes. 3 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)