@@ -100,8 +100,8 @@ void actions(ModSecurityTestResults<RegressionTest> *r,
100100 }
101101 if (it.url != nullptr ) {
102102 r->location .append (it.url );
103- free (it.url );
104- it.url = nullptr ;
103+ free (it.url );
104+ it.url = nullptr ;
105105 }
106106 if (it.log != nullptr ) {
107107 *serverLog << it.log ;
@@ -294,7 +294,7 @@ void perform_unit_test(const ModSecurityTest<RegressionTest> &test,
294294 actions (&r, &modsec_transaction, &context.m_server_log );
295295
296296 modsec_transaction.appendRequestBody (
297- ( unsigned char *) t->request_body .c_str (),
297+ reinterpret_cast < const unsigned char *>( t->request_body .c_str () ),
298298 t->request_body .size ());
299299 modsec_transaction.processRequestBody ();
300300 actions (&r, &modsec_transaction, &context.m_server_log );
@@ -309,7 +309,7 @@ void perform_unit_test(const ModSecurityTest<RegressionTest> &test,
309309 actions (&r, &modsec_transaction, &context.m_server_log );
310310
311311 modsec_transaction.appendResponseBody (
312- ( unsigned char *) t->response_body .c_str (),
312+ reinterpret_cast < const unsigned char *>( t->response_body .c_str () ),
313313 t->response_body .size ());
314314 modsec_transaction.processResponseBody ();
315315 actions (&r, &modsec_transaction, &context.m_server_log );
0 commit comments