aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-03 22:21:07 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-03 22:21:07 +0000
commit72259231cd5cfb6ae54e11cac41164f7ea4539a0 (patch)
treee3891977e8ec958282137121678c15e49b4021f0
parent5f7c522cdd27610bc816d20235f2a9088de2de08 (diff)
downloadrspamd-72259231cd5cfb6ae54e11cac41164f7ea4539a0.tar.gz
rspamd-72259231cd5cfb6ae54e11cac41164f7ea4539a0.zip
Securely erase content of secret keys.
-rw-r--r--src/libutil/http.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c
index 6ddeb2518..b94e9bb52 100644
--- a/src/libutil/http.c
+++ b/src/libutil/http.c
@@ -1710,6 +1710,8 @@ rspamd_http_router_free (struct rspamd_http_connection_router *router)
static void
rspamd_http_keypair_dtor (struct rspamd_http_keypair *kp)
{
+ rspamd_explicit_memzero (kp->sk, sizeof (kp->sk));
+ rspamd_explicit_memzero (kp->nm, sizeof (kp->nm));
g_slice_free1 (sizeof (*kp), kp);
}