Skip to content

Commit 1a552bc

Browse files
author
Marc Stern
authored
Update msc_json.c
1 parent 0d5a8de commit 1a552bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apache2/msc_json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ int json_process_chunk(modsec_rec *msr, const char *buf, unsigned int size, char
359359
if (!base_offset) return -1;
360360

361361
/* Feed our parser and catch any errors */
362-
msr->json->status = yajl_parse(msr->json->handle, buf, size);
362+
msr->json->status = yajl_parse(msr->json->handle, (unsigned char*)base_offset, size);
363363
if (msr->json->status != yajl_status_ok) {
364364
if (msr->json->depth_limit_exceeded) {
365365
*error_msg = "JSON depth limit exceeded";

0 commit comments

Comments
 (0)