highlight: Fix JSON structure

This commit is contained in:
Felipe Zimmerle 2017-09-07 22:20:15 -03:00
parent 8a21f039be
commit 09743c981b
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

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);
@ -407,6 +406,7 @@ int ModSecurity::processContentOffset(const char *content, size_t len,
json->assign(reinterpret_cast<const char*>(buf), jsonSize);
json->append("\n");
yajl_gen_clear(g);
yajl_gen_free(g);
#else
*err = strdup("Without YAJL support, we cannot generate JSON.");