]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't use quotation marks for dates
authorAlan T. DeKok <aland@freeradius.org>
Tue, 20 Aug 2019 16:33:12 +0000 (12:33 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 20 Aug 2019 17:41:46 +0000 (13:41 -0400)
src/bin/unit_test_attribute.c

index 060dde2fa799c89b745cbbe0fe8b5aa0abcb3999..ea038ea20676e2f4d828b99bd71f6956f41bc037 100644 (file)
@@ -1379,7 +1379,14 @@ do { \
                                continue;
                        }
 
-                       fr_value_box_snprint(output, sizeof(output), box, '"');
+                       /*
+                        *      Don't print dates with enclosing quotation marks.
+                        */
+                       if (type != FR_TYPE_DATE) {
+                               fr_value_box_snprint(output, sizeof(output), box, '"');
+                       } else {
+                               fr_value_box_snprint(output, sizeof(output), box, '\0');
+                       }
 
                        /*
                         *      Behind the scenes, parse the output