Fix old macro usage.

Stephen R. van den Berg srb at cuci.nl
Tue Aug 23 12:18:14 CEST 2011


---
 src/lib/dhcp.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/lib/dhcp.c b/src/lib/dhcp.c
index cc66365..1bcaf44 100644
--- a/src/lib/dhcp.c
+++ b/src/lib/dhcp.c
@@ -1077,7 +1077,8 @@ int fr_dhcp_encode(RADIUS_PACKET *packet, RADIUS_PACKET *original)
 
 		if (fr_debug_flag) {
 			for (i = 256; i < 269; i++) {
-				vp = pairfind(packet->vps, DHCP2ATTR(i));
+				vp = pairfind(packet->vps, i,
+				 DHCP_MAGIC_VENDOR);
 				if (!vp) continue;
 
 				debug_pair(vp);
-- 
1.7.5.4





More information about the Freeradius-Devel mailing list