Fix old macro usage.

Alan DeKok aland at deployingradius.com
Tue Aug 23 14:46:05 CEST 2011


  Added, thanks.

Stephen R. van den Berg wrote:
> ---
>  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);




More information about the Freeradius-Devel mailing list