Keep track of "last in list" properly.
authorAlan T. DeKok <aland@freeradius.org>
Mon, 8 Nov 2010 11:43:04 +0000 (12:43 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 8 Nov 2010 12:58:32 +0000 (13:58 +0100)
Patch from James Ballantine.

Every other instance of "continue" in this function sets "tailfrom".
This one should, too.

src/main/valuepair.c

index 50f4cb6..96d76c3 100644 (file)
@@ -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;
                }