@@ -1190,8 +1190,6 @@ int map_to_request(REQUEST *request, vp_map_t const *map, radius_map_getvalue_t
11901190 RDEBUG2 ("No attributes updated for RHS %s" , map -> rhs -> name );
11911191 return rcode ;
11921192 }
1193- } else {
1194- if (rad_debug_lvl ) map_debug_log (request , map , NULL );
11951193 }
11961194
11971195 /*
@@ -1651,8 +1649,6 @@ void map_debug_log(REQUEST *request, vp_map_t const *map, VALUE_PAIR const *vp)
16511649 rad_assert (map -> lhs != NULL );
16521650 rad_assert (map -> rhs != NULL );
16531651
1654- rad_assert (vp || (map -> rhs -> type == TMPL_TYPE_NULL ));
1655-
16561652 switch (map -> rhs -> type ) {
16571653 /*
16581654 * Just print the value being assigned
@@ -1684,6 +1680,7 @@ void map_debug_log(REQUEST *request, vp_map_t const *map, VALUE_PAIR const *vp)
16841680 char attr [256 ];
16851681 char quote = '\0' ;
16861682 vp_tmpl_t vpt ;
1683+
16871684 /*
16881685 * Fudge a temporary tmpl that describes the attribute we're copying
16891686 * this is a combination of the original list tmpl, and values from
@@ -1732,16 +1729,16 @@ void map_debug_log(REQUEST *request, vp_map_t const *map, VALUE_PAIR const *vp)
17321729 switch (map -> lhs -> type ) {
17331730 case TMPL_TYPE_LIST :
17341731 RDEBUG ("%.*s:%s %s %s" , (int )map -> lhs -> len , map -> lhs -> name , vp ? vp -> da -> name : "" ,
1735- fr_int2str (fr_tokens , vp ? vp -> op : map -> op , "<INVALID>" ), ATTRIBUTE_SECRET ( vp , value ) );
1732+ fr_int2str (fr_tokens , vp ? vp -> op : map -> op , "<INVALID>" ), value );
17361733 break ;
17371734
17381735 case TMPL_TYPE_ATTR :
17391736 RDEBUG ("%s %s %s" , map -> lhs -> name ,
1740- fr_int2str (fr_tokens , vp ? vp -> op : map -> op , "<INVALID>" ), ATTRIBUTE_SECRET (vp , value ));
1737+ fr_int2str (fr_tokens , vp -> op , "<INVALID>" ), ATTRIBUTE_SECRET (vp , value ));
17411738 break ;
17421739
17431740 default :
1744- RDEBUG ("map %s = %s" , fr_int2str (tmpl_names , map -> lhs -> type , "???" ), ATTRIBUTE_SECRET ( vp , value ) );
1741+ RDEBUG ("map %s = %s" , fr_int2str (tmpl_names , map -> lhs -> type , "???" ), value );
17451742 break ;
17461743 }
17471744
0 commit comments