diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-05-21 02:37:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-05-21 02:37:53 +0000 |
commit | 40b0d1f2da153cff245bfa34926de917fd56bb3c (patch) | |
tree | 4e5e53bccbc2d2a7c99968bf49657dc918308676 /sbin/iked/dh.c | |
parent | bd56236b6e44b7c3ea47e18dd13f955a8ab7fe8b (diff) |
A few more freezero() uses
ok yasuoka mikeb
Diffstat (limited to 'sbin/iked/dh.c')
-rw-r--r-- | sbin/iked/dh.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sbin/iked/dh.c b/sbin/iked/dh.c index 29cba9addf0..a8308eec596 100644 --- a/sbin/iked/dh.c +++ b/sbin/iked/dh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dh.c,v 1.19 2017/03/27 17:17:49 mikeb Exp $ */ +/* $OpenBSD: dh.c,v 1.20 2017/05/21 02:37:52 deraadt Exp $ */ /* * Copyright (c) 2010-2014 Reyk Floeter <reyk@openbsd.org> @@ -262,11 +262,7 @@ group_free(struct group *group) DH_free(group->dh); if (group->ec != NULL) EC_KEY_free(group->ec); - if (group->curve25519 != NULL) { - explicit_bzero(group->curve25519, - sizeof(struct curve25519_key)); - free(group->curve25519); - } + freezero(group->curve25519, sizeof(struct curve25519_key)); group->spec = NULL; free(group); } |