aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-01-14 18:49:06 +0000
committerGravatar Sadie Powell2022-01-14 18:49:06 +0000
commitabeddc4f83f622b714b3aa5023aae0d14913d07f (patch)
treec6ccaf443748db22e2e89ff7ac1a71fc35366bda
parentAlways catch exceptions as a constant reference. (diff)
parentFix accessing the /stats/general and /stats/users sub-routes. (diff)
Merge branch 'insp3' into master.
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp2
-rw-r--r--src/modules/m_httpd_stats.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index 953e3dc51..35dc0d4f6 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -612,7 +612,7 @@ class OpenSSLIOHook final
X509_free(cert);
}
- static void GetDNString(const X509_NAME* x509name, std::string& out)
+ static void GetDNString(X509_NAME* x509name, std::string& out)
{
char buf[512];
X509_NAME_oneline(x509name, buf, sizeof(buf));
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp
index e6932c5ff..f5e3b8427 100644
--- a/src/modules/m_httpd_stats.cpp
+++ b/src/modules/m_httpd_stats.cpp
@@ -415,7 +415,7 @@ class ModuleHttpStats final
ModResult HandleRequest(HTTPRequest* http)
{
- if (http->GetPath() != "/stats")
+ if (http->GetPath().compare(0, 6, "/stats"))
return MOD_RES_PASSTHRU;
ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "Handling HTTP request for %s", http->GetPath().c_str());