@@ -101,11 +101,11 @@ namespace modsecurity {
101
101
*/
102
102
Transaction::Transaction (ModSecurity *ms, RulesSet *rules, void *logCbData)
103
103
: m_creationTimeStamp(utils::cpu_seconds()),
104
- /* m_clientIpAddress(nullptr), */
104
+ m_clientIpAddress (std::make_shared<std::string>( " " )),
105
105
m_httpVersion(" " ),
106
- /* m_serverIpAddress(""), */
106
+ m_serverIpAddress(std::make_shared<std::string>( " " )),
107
107
m_uri(" " ),
108
- /* m_uri_no_query_string_decoded(""), */
108
+ m_uri_no_query_string_decoded(std::make_shared<std::string>( " " )),
109
109
m_ARGScombinedSizeDouble(0 ),
110
110
m_clientPort(0 ),
111
111
m_highestSeverityAction(255 ),
@@ -175,11 +175,11 @@ Transaction::Transaction(ModSecurity *ms, RulesSet *rules, void *logCbData)
175
175
176
176
Transaction::Transaction (ModSecurity *ms, RulesSet *rules, char *id, void *logCbData)
177
177
: m_creationTimeStamp(utils::cpu_seconds()),
178
- /* m_clientIpAddress(""), */
178
+ m_clientIpAddress(std::make_shared<std::string>( " " )),
179
179
m_httpVersion(" " ),
180
- /* m_serverIpAddress(""), */
180
+ m_serverIpAddress(std::make_shared<std::string>( " " )),
181
181
m_uri(" " ),
182
- /* m_uri_no_query_string_decoded(""), */
182
+ m_uri_no_query_string_decoded(std::make_shared<std::string>( " " )),
183
183
m_ARGScombinedSizeDouble(0 ),
184
184
m_clientPort(0 ),
185
185
m_highestSeverityAction(255 ),
0 commit comments