highlight: Fix JSON structure

This commit is contained in:
Felipe Zimmerle
2017-03-20 22:54:55 -03:00
parent 2e068428ea
commit a1a70c7f2f

View File

@@ -396,9 +396,8 @@ int ModSecurity::processContentOffset(const char *content, size_t len,
yajl_gen_map_close(g);
yajl_gen_array_close(g);
yajl_gen_map_close(g);
yajl_gen_array_close(g);
yajl_gen_map_close(g);
@@ -406,6 +405,7 @@ int ModSecurity::processContentOffset(const char *content, size_t len,
json->assign(reinterpret_cast<const char*>(buf), jsonSize);
yajl_gen_clear(g);
yajl_gen_free(g);
#else
*err = strdup("Without YAJL support, we cannot generate JSON.");