}
memset(this, 0, sizeof(*this));
this->item.type = POLICY_TYPE_ATTRIBUTE_LIST;
+ this->item.lineno = lexer->lineno;
+ this->where = where;
token = policy_lex_file(lexer, 0, buffer, sizeof(buffer));
+ this->how = token;
+
switch (token) {
case POLICY_LEX_BEFORE_WHERE_EQUALS:
case POLICY_LEX_AFTER_WHERE_EQUALS:
return 0; /* unknown */
}
- this = rad_malloc(sizeof(*this));
- memset(this, 0, sizeof(*this));
-
- this->item.type = POLICY_TYPE_ATTRIBUTE_LIST;
- this->item.lineno = lexer->lineno;
- this->where = where;
- this->how = token;
-
if (!parse_block(lexer, &(this->attributes))) {
rlm_policy_free_item((policy_item_t *) this);
return 0;