summaryrefslogtreecommitdiffhomepage
path: root/src/peer.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-08-27 09:36:16 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2020-08-27 09:36:16 +0200
commit1a41e327bef444861324c2df86bd21f15aaf95c4 (patch)
tree51e722eebcd505c2bfd407d7d17a4090a8386456 /src/peer.c
parent90a9e82ba613d39951c8b6fb66d149a06b5b2298 (diff)
compat: backport kfree_sensitive and switch to it
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/peer.c')
-rw-r--r--src/peer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peer.c b/src/peer.c
index 1d634bd..b3b6370 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -203,7 +203,7 @@ static void rcu_release(struct rcu_head *rcu)
/* The final zeroing takes care of clearing any remaining handshake key
* material and other potentially sensitive information.
*/
- kzfree(peer);
+ kfree_sensitive(peer);
}
static void kref_release(struct kref *refcount)