diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2021-09-08 01:05:51 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2022-02-11 00:42:03 +0000 |
| commit | bb83bdac03e92c8efcd991de8caccc5ec2ddcb20 (patch) | |
| tree | 0291b201bd0518f930ca58a46ca5d45f6bb51f9f /crypto/openssh/hmac.c | |
| parent | 888b2e616d3d692f5c85e1cd57ec5c7b23be776b (diff) | |
Diffstat (limited to 'crypto/openssh/hmac.c')
| -rw-r--r-- | crypto/openssh/hmac.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crypto/openssh/hmac.c b/crypto/openssh/hmac.c index 1c879640cb3c..7b588019e74b 100644 --- a/crypto/openssh/hmac.c +++ b/crypto/openssh/hmac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hmac.c,v 1.12 2015/03/24 20:03:44 markus Exp $ */ +/* $OpenBSD: hmac.c,v 1.14 2020/02/26 13:40:09 jsg Exp $ */ /* * Copyright (c) 2014 Markus Friedl. All rights reserved. * @@ -18,6 +18,8 @@ #include "includes.h" #include <sys/types.h> + +#include <stdlib.h> #include <string.h> #include "sshbuf.h" @@ -129,8 +131,7 @@ ssh_hmac_free(struct ssh_hmac_ctx *ctx) explicit_bzero(ctx->buf, ctx->buf_len); free(ctx->buf); } - explicit_bzero(ctx, sizeof(*ctx)); - free(ctx); + freezero(ctx, sizeof(*ctx)); } } |
