Adds origin to the paramenters that cames from JSON

That is necessary otherwise the Auditlog will try to access it generating
a segfault.
This commit is contained in:
Felipe Zimmerle 2014-03-20 10:58:43 -07:00
parent 52bef20ce5
commit c5c2690809

View File

@ -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 = apr_pstrmemdup(msr->mp, value, length);
arg->value_len = length; arg->value_len = length;
arg->origin = "JSON";
if (msr->txcfg->debuglog_level >= 9) { if (msr->txcfg->debuglog_level >= 9) {
msr_log(msr, 9, "Adding JSON argument '%s' with value '%s'", msr_log(msr, 9, "Adding JSON argument '%s' with value '%s'",