From: Alan T. DeKok Date: Mon, 8 Nov 2010 11:43:04 +0000 (+0100) Subject: Keep track of "last in list" properly. X-Git-Tag: release_3_0_0_beta0~1177 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=freeradius.git;a=commitdiff_plain;h=06abdefb5b1f70a21af63dc369aaf6116565ec9b Keep track of "last in list" properly. Patch from James Ballantine. Every other instance of "continue" in this function sets "tailfrom". This one should, too. --- diff --git a/src/main/valuepair.c b/src/main/valuepair.c index 50f4cb6..96d76c3 100644 --- a/src/main/valuepair.c +++ b/src/main/valuepair.c @@ -573,6 +573,7 @@ void pairxlatmove(REQUEST *req, VALUE_PAIR **to, VALUE_PAIR **from) * Don't move 'fallthrough' over. */ if (i->attribute == PW_FALL_THROUGH) { + tailfrom = i; continue; }