Skip to content
Snippets Groups Projects
Commit f42e9d1b authored by Stephan Bosch's avatar Stephan Bosch
Browse files

Fixed small bug in the extension validation.

parent 79ea9888
No related branches found
No related tags found
No related merge requests found
...@@ -573,6 +573,9 @@ bool sieve_validator_extension_loaded ...@@ -573,6 +573,9 @@ bool sieve_validator_extension_loaded
int ext_id = SIEVE_EXT_ID(ext); int ext_id = SIEVE_EXT_ID(ext);
const struct sieve_validator_extension_reg *reg; const struct sieve_validator_extension_reg *reg;
if ( ext_id < 0 || ext_id >= (int) array_count(&valdtr->extensions))
return FALSE;
reg = array_idx(&valdtr->extensions, (unsigned int) ext_id); reg = array_idx(&valdtr->extensions, (unsigned int) ext_id);
return ( reg->loaded ); return ( reg->loaded );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.