]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/plugins/radius/radius.c
radius: distinguish between User-Request and Admin-Reset.
[ppp.git] / pppd / plugins / radius / radius.c
index 02875b4fec2069de9d31339b80df793bf8a709e5..393e7977a8df8652297c0a4a0512e1e2ab1266c5 100644 (file)
@@ -1051,10 +1051,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: