Skip to content

Commit c5c2690

Browse files
author
Felipe Zimmerle
committed
Adds origin to the paramenters that cames from JSON
That is necessary otherwise the Auditlog will try to access it generating a segfault.
1 parent 52bef20 commit c5c2690

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apache2/msc_json.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ int json_add_argument(modsec_rec *msr, const char *value, unsigned length)
4848
*/
4949
arg->value = apr_pstrmemdup(msr->mp, value, length);
5050
arg->value_len = length;
51+
arg->origin = "JSON";
5152

5253
if (msr->txcfg->debuglog_level >= 9) {
5354
msr_log(msr, 9, "Adding JSON argument '%s' with value '%s'",

0 commit comments

Comments
 (0)