commit 12fee52: [Minor] Fix setting structure's fields

Vsevolod Stakhov vsevolod at highsecure.ru
Fri May 17 16:21:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-05-17 17:15:10 +0100
URL: https://github.com/rspamd/rspamd/commit/12fee52a2fc74660279413a208883fe71b705ca7 (HEAD -> master)

[Minor] Fix setting structure's fields

---
 src/libutil/expression.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libutil/expression.c b/src/libutil/expression.c
index 71414dc66..6099a308f 100644
--- a/src/libutil/expression.c
+++ b/src/libutil/expression.c
@@ -1124,6 +1124,7 @@ rspamd_process_expression_closure (struct rspamd_expression *expr,
 
 	expr->evals ++;
 
+	memset (&pd, 0, sizeof (pd));
 	pd.process_closure = cb;
 	pd.flags = flags;
 	pd.ud = runtime_ud;


More information about the Commits mailing list