mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fix msc_who_am_i() to return pointer to a valid C string
Previously this function was unusable as it returned pointer to some garbage data.
This commit is contained in:
committed by
Felipe Zimmerle
parent
3fa3094eee
commit
ebc068b8ce
@@ -278,7 +278,7 @@ class ModSecurity {
|
||||
ModSecurity();
|
||||
~ModSecurity();
|
||||
|
||||
static const std::string whoAmI();
|
||||
const std::string& whoAmI();
|
||||
void setConnectorInformation(std::string connector);
|
||||
void setServerLogCb(ModSecLogCb cb);
|
||||
/**
|
||||
@@ -304,6 +304,7 @@ class ModSecurity {
|
||||
|
||||
private:
|
||||
std::string m_connector;
|
||||
std::string m_whoami;
|
||||
ModSecLogCb m_logCb;
|
||||
int m_logProperties;
|
||||
};
|
||||
|
Reference in New Issue
Block a user