qsrv: SecurityLogger must restore dbChannel addr.pfield
Missing initialization of SecurityLogger::pchan prevents restore logic from triggering. Remove default value so that compiler complains if used without initialization.
This commit is contained in:
committed by
Michael Davidsaver
parent
4f45ffab44
commit
33798897fb
@@ -21,8 +21,8 @@ namespace pvxs {
|
||||
namespace ioc {
|
||||
|
||||
class SecurityLogger {
|
||||
void* pfieldsave = nullptr;
|
||||
dbChannel *pchan = nullptr;
|
||||
void* pfieldsave;
|
||||
dbChannel *pchan;
|
||||
void* pvt;
|
||||
public:
|
||||
~SecurityLogger() {
|
||||
@@ -39,12 +39,15 @@ public:
|
||||
}
|
||||
|
||||
SecurityLogger()
|
||||
:pvt(nullptr) {
|
||||
}
|
||||
:pfieldsave(nullptr)
|
||||
,pchan(nullptr)
|
||||
,pvt(nullptr)
|
||||
{}
|
||||
SecurityLogger(dbChannel* pDbChannel,
|
||||
const Credentials& credentials,
|
||||
const SecurityClient& securityClient)
|
||||
:pfieldsave(pDbChannel->addr.pfield)
|
||||
,pchan(pDbChannel)
|
||||
,pvt(asTrapWriteWithData((securityClient.cli)[0], // The user is the first element
|
||||
credentials.cred[0].c_str(), // The user is the first element
|
||||
credentials.host.c_str(),
|
||||
|
||||
Reference in New Issue
Block a user