mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 13:26:01 +03:00
Add some member varialbe inits in Transaction class
This commit is contained in:
parent
1feaa7d24b
commit
db84d8cf77
2
CHANGES
2
CHANGES
@ -1,6 +1,8 @@
|
||||
v3.x.y - YYYY-MMM-DD (to be released)
|
||||
-------------------------------------
|
||||
|
||||
- Add some member variable inits in Transaction class
|
||||
[Issue #2886 - @GNU-Plus-Windows-User, @airween, @mdounin, @martinhsv]
|
||||
- Resolve memory leak on reload (bison-generated variable)
|
||||
[Issue #2876 - @martinhsv]
|
||||
- Support equals sign in XPath expressions
|
||||
|
@ -101,11 +101,11 @@ namespace modsecurity {
|
||||
*/
|
||||
Transaction::Transaction(ModSecurity *ms, RulesSet *rules, void *logCbData)
|
||||
: m_creationTimeStamp(utils::cpu_seconds()),
|
||||
/* m_clientIpAddress(nullptr), */
|
||||
m_clientIpAddress(std::make_shared<std::string>("")),
|
||||
m_httpVersion(""),
|
||||
/* m_serverIpAddress(""), */
|
||||
m_serverIpAddress(std::make_shared<std::string>("")),
|
||||
m_uri(""),
|
||||
/* m_uri_no_query_string_decoded(""), */
|
||||
m_uri_no_query_string_decoded(std::make_shared<std::string>("")),
|
||||
m_ARGScombinedSizeDouble(0),
|
||||
m_clientPort(0),
|
||||
m_highestSeverityAction(255),
|
||||
@ -175,11 +175,11 @@ Transaction::Transaction(ModSecurity *ms, RulesSet *rules, void *logCbData)
|
||||
|
||||
Transaction::Transaction(ModSecurity *ms, RulesSet *rules, char *id, void *logCbData)
|
||||
: m_creationTimeStamp(utils::cpu_seconds()),
|
||||
/* m_clientIpAddress(""), */
|
||||
m_clientIpAddress(std::make_shared<std::string>("")),
|
||||
m_httpVersion(""),
|
||||
/* m_serverIpAddress(""), */
|
||||
m_serverIpAddress(std::make_shared<std::string>("")),
|
||||
m_uri(""),
|
||||
/* m_uri_no_query_string_decoded(""), */
|
||||
m_uri_no_query_string_decoded(std::make_shared<std::string>("")),
|
||||
m_ARGScombinedSizeDouble(0),
|
||||
m_clientPort(0),
|
||||
m_highestSeverityAction(255),
|
||||
|
Loading…
x
Reference in New Issue
Block a user