From: Alan T. DeKok Date: Sat, 29 May 2010 09:26:56 +0000 (+0200) Subject: Fix endless loop when there are multiple DHCP options X-Git-Url: http://www.project-moonshot.org/gitweb/?p=freeradius.git;a=commitdiff_plain;h=880ddec8a950efb5452b1d88a7ffe78b2c53b2cb Fix endless loop when there are multiple DHCP options --- diff --git a/src/modules/frs_dhcp/dhcp.c b/src/modules/frs_dhcp/dhcp.c index 18db44d..681625f 100644 --- a/src/modules/frs_dhcp/dhcp.c +++ b/src/modules/frs_dhcp/dhcp.c @@ -714,7 +714,7 @@ int fr_dhcp_decode(RADIUS_PACKET *packet) } *tail = vp; - while (*tail) tail = &vp->next; + while (*tail) tail = &(*tail)->next; p += alen; } /* loop over array entries */ } /* loop over the entire packet */