]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use new dict_valnamebyattr function
authorAlan T. DeKok <aland@freeradius.org>
Fri, 23 Dec 2011 14:33:57 +0000 (09:33 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 29 Dec 2011 22:57:10 +0000 (17:57 -0500)
src/main/acct.c

index 104850ba6f0cfeefd6ca9282afd1924a896384d4..8b64471d314c05eb74a2e851e0e1bfb97c5f219b 100644 (file)
@@ -87,8 +87,9 @@ int rad_accounting(REQUEST *request)
                 */
                vp = pairfind(request->config_items, PW_ACCT_TYPE);
                if (vp) {
-                       DEBUG2("  Found Acct-Type %s", vp->vp_strvalue);
                        acct_type = vp->vp_integer;
+                       DEBUG2("  Found Acct-Type %s",
+                              dict_valnamebyattr(PW_ACCT_TYPE, acct_type));
                }
                result = module_accounting(acct_type, request);
                switch (result) {