]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Assert not required and causes warnings with NDEBUG
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 29 May 2015 20:07:24 +0000 (16:07 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 29 May 2015 20:07:24 +0000 (16:07 -0400)
src/main/conffile.c

index e70c4bf9814347e982fa689b5ed846000e0fb734..c29b7a2c3d176e639baa5be55bac2f12bf9524f3 100644 (file)
@@ -1155,7 +1155,7 @@ static inline int fr_item_validate_ipaddr(CONF_SECTION *cs, char const *name, PW
 int cf_item_parse(CONF_SECTION *cs, char const *name, unsigned int type, void *data, char const *dflt)
 {
        int rcode;
-       bool deprecated, required, attribute, secret, file_input, cant_be_empty, tmpl, xlat, multi;
+       bool deprecated, required, attribute, secret, file_input, cant_be_empty, tmpl, multi;
        char **q;
        char const *value;
        CONF_PAIR *cp = NULL;
@@ -1171,7 +1171,6 @@ int cf_item_parse(CONF_SECTION *cs, char const *name, unsigned int type, void *d
        file_input = (type == PW_TYPE_FILE_INPUT);      /* check, not and */
        cant_be_empty = (type & PW_TYPE_NOT_EMPTY);
        tmpl = (type & PW_TYPE_TMPL);
-       xlat = (type & PW_TYPE_XLAT);
        multi = (type & PW_TYPE_MULTI);
 
        if (attribute) required = true;
@@ -1260,7 +1259,6 @@ int cf_item_parse(CONF_SECTION *cs, char const *name, unsigned int type, void *d
                }
 
                rad_assert(!attribute);
-               rad_assert(!xlat);
                vpt = tmpl_alloc(cs, TMPL_TYPE_LITERAL, value, strlen(value));
                *(vp_tmpl_t **)data = vpt;