mirror of
https://github.com/znc/znc.git
synced 2026-05-18 07:15:54 +02:00
Don't crash when receiving SASL lines from server without having negotiated SASL via CAP
Reported by Noisytoot on Pissnet, thanks
This commit is contained in:
@@ -268,5 +268,17 @@ INSTANTIATE_TEST_CASE_P(SaslInst, SaslModuleTest,
|
||||
99,
|
||||
{SaslModuleTest::Prefix() + "YmJi", "Yg=="}}));
|
||||
|
||||
TEST_F(ZNCTest, SaslMechsNotInit) {
|
||||
auto znc = Run();
|
||||
auto ircd = ConnectIRCd();
|
||||
auto client = LoginClient();
|
||||
client.Write("znc loadmod sasl");
|
||||
client.Write("PRIVMSG *sasl :set * *");
|
||||
client.ReadUntil("Password has been set");
|
||||
ircd.Write("AUTHENTICATE +");
|
||||
ircd.Write("PING foo");
|
||||
ircd.ReadUntil("PONG foo");
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace znc_inttest
|
||||
|
||||
Reference in New Issue
Block a user