From c5c2690809fec56eb84e2a7943c6bd7e13e3aaab Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Thu, 20 Mar 2014 10:58:43 -0700 Subject: [PATCH] Adds origin to the paramenters that cames from JSON That is necessary otherwise the Auditlog will try to access it generating a segfault. --- apache2/msc_json.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apache2/msc_json.c b/apache2/msc_json.c index e2af2bb4..6efcaecb 100644 --- a/apache2/msc_json.c +++ b/apache2/msc_json.c @@ -48,6 +48,7 @@ int json_add_argument(modsec_rec *msr, const char *value, unsigned length) */ arg->value = apr_pstrmemdup(msr->mp, value, length); arg->value_len = length; + arg->origin = "JSON"; if (msr->txcfg->debuglog_level >= 9) { msr_log(msr, 9, "Adding JSON argument '%s' with value '%s'",