diff options
| author | 2012-10-03 02:50:20 +0200 | |
|---|---|---|
| committer | 2012-10-03 03:22:22 +0200 | |
| commit | 6b14ac1562dda1492e7ca44c2306e2432200b8cc (patch) | |
| tree | 6017e0421a2fd00fdd508be679833e8538186037 /src/modules/m_sslmodes.cpp | |
| parent | m_services_account Fix possible recursion when checking 'U' extbans (diff) | |
| download | inspircd++-6b14ac1562dda1492e7ca44c2306e2432200b8cc.tar.gz inspircd++-6b14ac1562dda1492e7ca44c2306e2432200b8cc.tar.bz2 inspircd++-6b14ac1562dda1492e7ca44c2306e2432200b8cc.zip | |
Check if the mask is long enough before accessing it when checking extbans
Diffstat (limited to 'src/modules/m_sslmodes.cpp')
| -rw-r--r-- | src/modules/m_sslmodes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_sslmodes.cpp b/src/modules/m_sslmodes.cpp index ef63b2511..f17f30907 100644 --- a/src/modules/m_sslmodes.cpp +++ b/src/modules/m_sslmodes.cpp @@ -113,7 +113,7 @@ class ModuleSSLModes : public Module ModResult OnCheckBan(User *user, Channel *c, const std::string& mask) { - if (mask[0] == 'z' && mask[1] == ':') + if ((mask.length() > 2) && (mask[0] == 'z') && (mask[1] == ':')) { UserCertificateRequest req(user, this); req.Send(); |
