From 2ffc9d597d81ef8348418c7a67e721d5950513c2 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Tue, 20 Jul 2010 16:29:13 +0200 Subject: [PATCH] Print all decoded TLVs, not just the first one. --- src/lib/dhcp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/dhcp.c b/src/lib/dhcp.c index 9f12f60..84a3a65 100644 --- a/src/lib/dhcp.c +++ b/src/lib/dhcp.c @@ -707,9 +707,11 @@ int fr_dhcp_decode(RADIUS_PACKET *packet) return -1; } - debug_pair(vp); *tail = vp; - while (*tail) tail = &(*tail)->next; + while (*tail) { + debug_pair(*tail); + tail = &(*tail)->next; + } p += alen; } /* loop over array entries */ } /* loop over the entire packet */ @@ -1347,7 +1349,6 @@ int fr_dhcp_encode(RADIUS_PACKET *packet, RADIUS_PACKET *original) vp = packet->vps; while (vp) { int num_entries = 1; - VALUE_PAIR *same; uint8_t *plength, *pattr; -- 2.1.4