From: Paul Mackerras Date: Mon, 22 May 2006 00:01:40 +0000 (+0000) Subject: This fixes the RADIUS accounting termination cause when X-Git-Tag: ppp-2.4.7~121 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=e227ca9c99af2e3320e1a41be3fd140429c2a995;hp=967f448dded55f370a8640abfe0a1bafefb7e25f This fixes the RADIUS accounting termination cause when callback is negotiated via CBCP (report PW_CALLBACK instead of the default PW_NAS_ERROR). Patch from Robert Vogelgesang. --- diff --git a/pppd/plugins/radius/radius.c b/pppd/plugins/radius/radius.c index 9fe5e5a..3c773cb 100644 --- a/pppd/plugins/radius/radius.c +++ b/pppd/plugins/radius/radius.c @@ -24,7 +24,7 @@ * ***********************************************************************/ static char const RCSID[] = -"$Id: radius.c,v 1.30 2005/07/10 10:28:55 paulus Exp $"; +"$Id: radius.c,v 1.31 2006/05/22 00:01:40 paulus Exp $"; #include "pppd.h" #include "chap-new.h" @@ -1019,6 +1019,10 @@ radius_acct_stop(void) av_type = PW_ACCT_IDLE_TIMEOUT; break; + case EXIT_CALLBACK: + av_type = PW_CALLBACK; + break; + case EXIT_CONNECT_TIME: av_type = PW_ACCT_SESSION_TIMEOUT; break;