*
***********************************************************************/
static char const RCSID[] =
-"$Id: radius.c,v 1.17 2002/10/01 09:27:50 fcusack Exp $";
+"$Id: radius.c,v 1.18 2002/11/13 18:19:26 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
/* 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,