]> git.ozlabs.org Git - ppp.git/commitdiff
Merge pull request #378 from jkroonza/radius-admin-reset
authorPaul Mackerras <paulus@ozlabs.org>
Sat, 31 Dec 2022 06:03:15 +0000 (17:03 +1100)
committerGitHub <noreply@github.com>
Sat, 31 Dec 2022 06:03:15 +0000 (17:03 +1100)
radius: distinguish between User-Request and Admin-Reset.

pppd/plugins/radius/radius.c

index 999a30657eb343a21cbe53853ab98b54c6b7fd6d..c6dfdc192eb979eb04a3bd6f943f52c49cfc3b82 100644 (file)
@@ -1141,10 +1141,13 @@ radius_acct_stop(void)
     av_type = PW_NAS_ERROR;
     switch( status ) {
        case EXIT_OK:
-       case EXIT_USER_REQUEST:
            av_type = PW_USER_REQUEST;
            break;
 
+       case EXIT_USER_REQUEST:
+           av_type = PW_ADMIN_RESET;
+           break;
+
        case EXIT_HANGUP:
        case EXIT_PEER_DEAD:
        case EXIT_CONNECT_FAILED: