Fix missing rename for request-body-limit to request_body_limit.

remotes/origin/master-1.1.x
Victor Julien 16 years ago
parent 3b3a8ffb94
commit edeec290f6

@ -907,7 +907,8 @@ static void HTPConfigure(void)
} }
} }
} else if (strcasecmp("request-body-limit", p->name) == 0) { } else if (strcasecmp("request-body-limit", p->name) == 0 ||
strcasecmp("request_body_limit", p->name) == 0) {
/* limit */ /* limit */
TAILQ_FOREACH(pval, &p->head, next) { TAILQ_FOREACH(pval, &p->head, next) {
SCLogDebug("LIBHTP default: %s=%s", SCLogDebug("LIBHTP default: %s=%s",
@ -923,7 +924,7 @@ static void HTPConfigure(void)
} }
else { else {
SCLogWarning(SC_ERR_UNKNOWN_VALUE, SCLogWarning(SC_ERR_UNKNOWN_VALUE,
"LIBHTP malformed request-body-limit " "LIBHTP malformed request_body_limit "
"\"%s\", using default %u", pval->val, "\"%s\", using default %u", pval->val,
HTP_CONFIG_DEFAULT_REQUEST_BODY_LIMIT); HTP_CONFIG_DEFAULT_REQUEST_BODY_LIMIT);
cfglist.request_body_limit = HTP_CONFIG_DEFAULT_REQUEST_BODY_LIMIT; cfglist.request_body_limit = HTP_CONFIG_DEFAULT_REQUEST_BODY_LIMIT;

Loading…
Cancel
Save