Use new dict_valnamebyattr function
authorAlan T. DeKok <aland@freeradius.org>
Fri, 23 Dec 2011 14:34:39 +0000 (09:34 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 26 Dec 2011 17:40:46 +0000 (12:40 -0500)
src/main/acct.c

index 09b129f..baeb686 100644 (file)
@@ -87,8 +87,9 @@ int rad_accounting(REQUEST *request)
                 */
                vp = pairfind(request->config_items, PW_ACCT_TYPE, 0);
                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, 0, acct_type));
                }
                result = module_accounting(acct_type, request);
                switch (result) {