From: Arran Cudbard-Bell Date: Fri, 26 May 2017 01:44:45 +0000 (-0400) Subject: CID 1409864: Use the bool to check for multi X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e2b79fac212ffec5f852c165942a2bcd350e5a1;p=thirdparty%2Ffreeradius-server.git CID 1409864: Use the bool to check for multi --- diff --git a/src/main/conf_file.c b/src/main/conf_file.c index e52a487165d..96743d5e55d 100644 --- a/src/main/conf_file.c +++ b/src/main/conf_file.c @@ -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);