]> git.ozlabs.org Git - ppp.git/commitdiff
This fixes the RADIUS accounting termination cause when
authorPaul Mackerras <paulus@samba.org>
Mon, 22 May 2006 00:01:40 +0000 (00:01 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 22 May 2006 00:01:40 +0000 (00:01 +0000)
callback is negotiated via CBCP (report PW_CALLBACK instead of
the default PW_NAS_ERROR).
Patch from Robert Vogelgesang.

pppd/plugins/radius/radius.c

index 9fe5e5a33bed434d0a753f774165e86a5748e4cb..3c773cb2c49137eeb8923b12772e2469d1d6a46e 100644 (file)
@@ -24,7 +24,7 @@
 *
 ***********************************************************************/
 static char const RCSID[] =
 *
 ***********************************************************************/
 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"
 
 #include "pppd.h"
 #include "chap-new.h"
@@ -1019,6 +1019,10 @@ radius_acct_stop(void)
            av_type = PW_ACCT_IDLE_TIMEOUT;
            break;
 
            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;
        case EXIT_CONNECT_TIME:
            av_type = PW_ACCT_SESSION_TIMEOUT;
            break;