Check value of Fall-Through, too
authorAlan T. DeKok <aland@freeradius.org>
Wed, 9 Sep 2009 12:12:35 +0000 (14:12 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 9 Sep 2009 12:12:35 +0000 (14:12 +0200)
src/modules/rlm_attr_filter/rlm_attr_filter.c

index db1891b..ba5e53c 100644 (file)
@@ -229,7 +229,8 @@ static int attr_filter_common(void *instance, REQUEST *request,
                for (check_item = pl->check;
                     check_item != NULL;
                     check_item = check_item->next) {
-                       if (check_item->attribute == PW_FALL_THROUGH) {
+                       if ((check_item->attribute == PW_FALL_THROUGH) &&
+                           (check_item->vp_integer == 1)) {
                                fall_through = 1;
                                continue;
                        }