]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
CID 1409864: Use the bool to check for multi
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 26 May 2017 01:44:45 +0000 (21:44 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 26 May 2017 01:44:45 +0000 (21:44 -0400)
src/main/conf_file.c

index e52a487165debc430043a39e7d13c70d7cd6c82c..96743d5e55d5315b5bf8aeaa7bba83d402d161dc 100644 (file)
@@ -1473,9 +1473,9 @@ int cf_section_parse_pass2(void *base, CONF_SECTION *cs, CONF_PARSER const varia
                         */
                        if (!base) {
                                subcs_base = NULL;
-                       } else if (type & FR_TYPE_MULTI) {
-                               size_t j, len;
-                               uint8_t **array;
+                       } else if (multi) {
+                               size_t          j, len;
+                               uint8_t         **array;
 
                                array = (uint8_t **)((uint8_t *)base) + variables[i].offset;
                                len = talloc_array_length(array);