Remove a footgun by decreasing the SASL API surface for modules

Even without the bad vtable of mutex inside shared_ptr, if a module
creates a subclass of CAuthBase, but then unloads, we have the same
problem.
This commit is contained in:
Alexey Sokolov
2025-02-23 09:25:24 +00:00
parent af21753901
commit 4f07558a7d
3 changed files with 17 additions and 30 deletions
+1 -2
View File
@@ -42,8 +42,7 @@ class CSASLMechanismPlain : public CModule {
return HALTMODS;
}
auto spAuth = CAuthBase::WrapPointer(new CClientSASLAuth(GetClient(), sAuthcId, sPassword));
GetClient()->StartPasswordCheck(spAuth);
GetClient()->StartSASLPasswordCheck(sAuthcId, sPassword);
return HALTMODS;
}
};