]> jfr.im git - irc/unrealircd/unrealircd.git/commitdiff
Fix crash in spamfilter { } block handling due to unitialized variable
authorBram Matthys <redacted>
Tue, 11 Jul 2023 10:15:01 +0000 (12:15 +0200)
committerBram Matthys <redacted>
Tue, 11 Jul 2023 10:15:01 +0000 (12:15 +0200)
src/modules/tkl.c

index b264d35b2483740878d42ea931e3147001d3c64d..6001272755a6f78110b02b7bed194449889c3f45 100644 (file)
@@ -532,7 +532,7 @@ int tkl_config_run_spamfilter(ConfigFile *cf, ConfigEntry *ce, int type)
        int match_type = 0;
        Match *m = NULL;
        int flag = TKL_FLAG_CONFIG;
-       SecurityGroup *except;
+       SecurityGroup *except = NULL;
 
        /* We are only interested in spamfilter { } blocks */
        if ((type != CONFIG_MAIN) || strcmp(ce->name, "spamfilter"))