Skip to content

Commit

Permalink
More %pV
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Jun 6, 2017
1 parent 60b9580 commit d511c6f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/modules/rlm_perl/rlm_perl.c
Expand Up @@ -717,19 +717,15 @@ static void perl_store_vps(UNUSED TALLOC_CTX *ctx, REQUEST *request, VALUE_PAIR
*/
switch (vp->vp_type) {
case FR_TYPE_STRING:
RDEBUG("$%s{'%s'} = &%s:%s -> '%s'", hash_name, vp->da->name, list_name,
vp->da->name, vp->vp_strvalue);
RDEBUG("$%s{'%s'} = &%s:%s -> '%pV'", hash_name, vp->da->name, list_name,
vp->da->name, &vp->data);
(void)hv_store(rad_hv, name, strlen(name), newSVpvn(vp->vp_strvalue, vp->vp_length), 0);
break;

case FR_TYPE_OCTETS:
if (RDEBUG_ENABLED) {
char *hex;

hex = fr_abin2hex(request, vp->vp_octets, vp->vp_length);
RDEBUG("$%s{'%s'} = &%s:%s -> 0x%s", hash_name, vp->da->name,
list_name, vp->da->name, hex);
talloc_free(hex);
RDEBUG("$%s{'%s'} = &%s:%s -> 0x%pV", hash_name, vp->da->name,
list_name, vp->da->name, &vp->data);
}
(void)hv_store(rad_hv, name, strlen(name),
newSVpvn((char const *)vp->vp_octets, vp->vp_length), 0);
Expand Down

0 comments on commit d511c6f

Please sign in to comment.