Duplicates the url variable in the disruptive action

The log message needs to be freed by the consumer. Doing the same with
the url to keep the API consistent.
This commit is contained in:
Felipe Zimmerle
2017-06-19 18:32:17 -03:00
parent 864d54f619
commit a71b58417a

View File

@@ -1293,7 +1293,9 @@ int Transaction::processLogging() {
*/
bool Transaction::intervention(ModSecurityIntervention *it) {
if (m_it.disruptive) {
it->url = m_it.url;
if (m_it.url) {
it->url = strdup(m_it.url);
}
it->disruptive = m_it.disruptive;
it->status = m_it.status;