*
***********************************************************************/
static char const RCSID[] =
-"$Id: radius.c,v 1.17 2002/10/01 09:27:50 fcusack Exp $";
+"$Id: radius.c,v 1.19 2002/12/23 23:24:37 fcusack Exp $";
#include "pppd.h"
#include "chap.h"
/* Add user specified vp's */
if (rstate.avp)
- rc_avpair_insert(&send, NULL, rstate.avp);
+ rc_avpair_insert(&send, NULL, rc_avpair_copy(rstate.avp));
if (rstate.authserver) {
result = rc_auth_using_server(rstate.authserver,
/* Add user specified vp's */
if (rstate.avp)
- rc_avpair_insert(&send, NULL, rstate.avp);
+ rc_avpair_insert(&send, NULL, rc_avpair_copy(rstate.avp));
/*
* make authentication with RADIUS server
* to generate the start key, sigh. NB: We do not support the LM-Key.
*/
mppe_set_keys(cstate->challenge, &plain[8]);
+ mppe_keys_set = 1;
return 0;
}
memcpy(mppe_send_key, plain + 1, 16);
else
memcpy(mppe_recv_key, plain + 1, 16);
+ mppe_keys_set = 1;
return 0;
}
/* Add user specified vp's */
if (rstate.avp)
- rc_avpair_insert(&send, NULL, rstate.avp);
+ rc_avpair_insert(&send, NULL, rc_avpair_copy(rstate.avp));
if (rstate.acctserver) {
result = rc_acct_using_server(rstate.acctserver,
/* Add user specified vp's */
if (rstate.avp)
- rc_avpair_insert(&send, NULL, rstate.avp);
+ rc_avpair_insert(&send, NULL, rc_avpair_copy(rstate.avp));
if (rstate.acctserver) {
result = rc_acct_using_server(rstate.acctserver,
/* Add user specified vp's */
if (rstate.avp)
- rc_avpair_insert(&send, NULL, rstate.avp);
+ rc_avpair_insert(&send, NULL, rc_avpair_copy(rstate.avp));
if (rstate.acctserver) {
result = rc_acct_using_server(rstate.acctserver,