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:
Andrei Belov
2017-12-26 22:13:30 +03:00
committed by Felipe Zimmerle
parent 3fa3094eee
commit ebc068b8ce
2 changed files with 9 additions and 4 deletions

View File

@@ -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;
};