ctx->error = p_strdup_printf(ctx->pool,
"%s { } must not have a section name",
key);
- return TRUE;
+ return FALSE;
}
filter.filter_name = p_strdup(ctx->pool, key);
} else {
if (value[0] == '\0' && !value_quoted) {
ctx->error = p_strdup_printf(ctx->pool,
"%s { } is missing section name", key);
- return TRUE;
+ return FALSE;
}
filter.filter_name =
p_strdup_printf(ctx->pool, "%s/%s", key, value);
ctx->cur_section->key = p_strdup(ctx->pool, key);
if (config_filter_add_new_filter(ctx, key, line->value,
- line->value_quoted)) {
- /* new filter */
+ line->value_quoted) ||
+ ctx->error != NULL) {
+ /* new filter or error */
break;
}
if (hash_table_lookup(ctx->all_keys, key) == NULL) {