Browse Source

[Minor] Avoid null dereference on error path

tags/3.2
Vsevolod Stakhov 2 years ago
parent
commit
dbcbc2a0ec
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/libstat/stat_config.c

+ 6
- 0
src/libstat/stat_config.c View File

@@ -278,6 +278,12 @@ rspamd_stat_init (struct rspamd_config *cfg, struct ev_loop *ev_base)
continue;
}
}
else {
/* This actually is not implemented so it should never happen */
g_free (cl);
cur = g_list_next (cur);
continue;
}

/* XXX:
* Here we get the first classifier tokenizer config as the only one

Loading…
Cancel
Save