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_2_1_11~218 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d31281edb6317fdc20abb246ca8fb5ca911bfa5a;p=thirdparty%2Ffreeradius-server.git 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 58a9cdab104..f8feb4008be 100644 --- a/src/main/valuepair.c +++ b/src/main/valuepair.c @@ -572,6 +572,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; }