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

index 2af6ce0..b6215aa 100644 (file)
@@ -716,8 +716,9 @@ autz_redo:
 
                tmp = pairfind(request->config_items, PW_SESSION_TYPE, 0);
                if (tmp) {
-                       RDEBUG2("Using Session-Type %s", tmp->vp_strvalue);
                        session_type = tmp->vp_integer;
+                       RDEBUG2("Using Session-Type %s",
+                               dict_valnamebyattr(PW_SESSION_TYPE, 0, session_type));
                }
 
                /*