mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
highlight: Fix JSON structure
This commit is contained in:
parent
445b4aee7c
commit
cb182b0dc5
@ -406,9 +406,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);
|
||||
|
||||
@ -417,6 +416,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.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user