diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2019-05-18 16:53:40 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2019-05-18 16:53:40 +0000 |
commit | 8deba4de36f85af63dd5ad4fd0893e41ba73f1ed (patch) | |
tree | 818d8f28e34f08175689124a5353a25710b353ca /bin | |
parent | 1908b177163a3204e8663b7569b91274ca238df7 (diff) |
freezero() is of no use here, the computed digest is not a secret.
ok millert@
Diffstat (limited to 'bin')
-rw-r--r-- | bin/md5/md5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/md5/md5.c b/bin/md5/md5.c index 298feeb18a7..dc6bf7eee6e 100644 --- a/bin/md5/md5.c +++ b/bin/md5/md5.c @@ -1,4 +1,4 @@ -/* $OpenBSD: md5.c,v 1.94 2019/01/25 00:19:25 millert Exp $ */ +/* $OpenBSD: md5.c,v 1.95 2019/05/18 16:53:39 otto Exp $ */ /* * Copyright (c) 2001,2003,2005-2007,2010,2013,2014 @@ -421,7 +421,7 @@ digest_end(const struct hash_function *hf, void *ctx, char *buf, size_t bsize, hf->final(digest, ctx); if (b64_ntop(digest, hf->digestlen, buf, bsize) == -1) errx(1, "error encoding base64"); - freezero(digest, hf->digestlen); + free(digest); } else { hf->end(ctx, buf); } |