mirror of
https://github.com/anope/anope.git
synced 2026-06-29 06:36:41 +02:00
Fixed crash on access del + valgrind errors
This commit is contained in:
+1
-1
@@ -669,7 +669,7 @@ bool Anope::Match(const Anope::string &str, const Anope::string &mask, bool case
|
||||
}
|
||||
}
|
||||
|
||||
if (mask[m] == '*')
|
||||
if (m < mask_len && mask[m] == '*')
|
||||
++m;
|
||||
|
||||
return m == mask_len;
|
||||
|
||||
Reference in New Issue
Block a user