From fcd9b34bb58368bd39fa1af3516221a299816116 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Wed, 20 Nov 2019 14:02:58 +0100 Subject: [PATCH] - Fix Useless memset() in validator, reported by X41 D-Sec. --- doc/Changelog | 1 + validator/autotrust.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Changelog b/doc/Changelog index 5ae98c560..d46bf57e9 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -32,6 +32,7 @@ - Fixed Compat Code Diverging from Upstream, reported by X41 D-Sec. - Fix compile with --enable-alloc-checks, reported by X41 D-Sec. - Fix Terminating Quotes not Written, reported by X41 D-Sec. + - Fix Useless memset() in validator, reported by X41 D-Sec. 19 November 2019: Wouter - Fix CVE-2019-18934, shell execution in ipsecmod. diff --git a/validator/autotrust.c b/validator/autotrust.c index da7078a19..11b600a51 100644 --- a/validator/autotrust.c +++ b/validator/autotrust.c @@ -86,7 +86,6 @@ void autr_global_delete(struct autr_global_data* global) if(!global) return; /* elements deleted by parent */ - memset(global, 0, sizeof(*global)); free(global); }