]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
hack for NUM_ALL
authorAlan T. DeKok <aland@freeradius.org>
Wed, 13 Sep 2017 19:46:13 +0000 (15:46 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 13 Sep 2017 19:49:51 +0000 (15:49 -0400)
Not sure why the xlat-list test *ever* passed...

src/main/xlat_eval.c
src/tests/keywords/xlat-list

index 7d6693a0186214fea941a087ab26689cf0a298da..21dad7a23ceb03a4c424e353b2b212fdf977897f 100644 (file)
@@ -278,6 +278,13 @@ do_print:
                return p;
        }
 
+       /*
+        *      tmpl_cursor_init() returns cursor->current==NULL
+        *      instead of ==last.
+        */
+       case NUM_LAST:
+               break;
+
        default:
                /*
                 *      The cursor was set to the correct
index 4a6be10040e489636f7610da59e4369a98448ef3..a0dd9819b02fe17cffc26f97297ef26700072c7f 100644 (file)
@@ -20,9 +20,9 @@ if (("%{control:[0]}" != 192.0.2.1) || ("%{control:[1]}" != 192.0.2.2)) {
        test_fail
 }
 
-#if (("%{control:[n]}" != 192.0.2.2)) {
-#      test_fail
-#}
+if (("%{control:[n]}" != 192.0.2.2)) {
+       test_fail
+}
 
 if ("%{control:[*]}" != '192.0.2.1,192.0.2.2') {
        test_fail