mirror of
https://github.com/znc/znc.git
synced 2026-05-05 13:02:31 +02:00
client auth: Switch from CSmartPtr to std::shared_ptr
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
@@ -870,7 +870,7 @@ CString CWebSock::GetCSRFCheck() {
|
||||
|
||||
bool CWebSock::OnLogin(const CString& sUser, const CString& sPass) {
|
||||
DEBUG("=================== CWebSock::OnLogin()");
|
||||
m_spAuth = new CWebAuth(this, sUser, sPass);
|
||||
m_spAuth = std::make_shared<CWebAuth>(this, sUser, sPass);
|
||||
|
||||
// Some authentication module could need some time, block this socket
|
||||
// until then. CWebAuth will UnPauseRead().
|
||||
|
||||
Reference in New Issue
Block a user