From: Arran Cudbard-Bell Date: Tue, 24 Jun 2014 09:15:03 +0000 (+0100) Subject: Print out TAG_ANY attributes correctly X-Git-Tag: release_3_0_4_rc2~216 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=freeradius.git;a=commitdiff_plain;h=713a487928b48ba76add7813da099bfc03ec4ac7 Print out TAG_ANY attributes correctly When attributes are inserted into the lists they should have their tag set to TAG_NONE if their tag was previously TAG_ANY --- diff --git a/src/lib/print.c b/src/lib/print.c index a49504f..8880117 100644 --- a/src/lib/print.c +++ b/src/lib/print.c @@ -749,7 +749,7 @@ size_t vp_prints(char *out, size_t outlen, VALUE_PAIR const *vp) token = ""; } - if (vp->da->flags.has_tag) { + if (vp->da->flags.has_tag && (vp->tag != TAG_ANY)) { len = snprintf(out, freespace, "%s:%d %s ", vp->da->name, vp->tag, token); } else { len = snprintf(out, freespace, "%s %s ", vp->da->name, token);