*
***********************************************************************/
static char const RCSID[] =
-"$Id: radius.c,v 1.16 2002/10/01 08:36:49 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,
break;
}
#endif
+ }
+ if (*remote_number) {
+ rc_avpair_add(&send, PW_CALLING_STATION_ID, remote_number, 0,
+ VENDOR_NONE);
}
/* 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,