summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acme-client
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2019-06-17 15:20:10 +0000
committertb <tb@openbsd.org>2019-06-17 15:20:10 +0000
commit810824d0aabf25711f2aab4cc45ebd23dea040d0 (patch)
tree74ac25d416d242f06450c980582c017dd92ac0db /usr.sbin/acme-client
parentfree(9) sizes. (diff)
downloadwireguard-openbsd-810824d0aabf25711f2aab4cc45ebd23dea040d0.tar.xz
wireguard-openbsd-810824d0aabf25711f2aab4cc45ebd23dea040d0.zip
One NULL-check before EVP_MD_CTX_free() was left in previous.
Diffstat (limited to 'usr.sbin/acme-client')
-rw-r--r--usr.sbin/acme-client/acctproc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/acme-client/acctproc.c b/usr.sbin/acme-client/acctproc.c
index 7648061c5cc..a07f9d07021 100644
--- a/usr.sbin/acme-client/acctproc.c
+++ b/usr.sbin/acme-client/acctproc.c
@@ -1,4 +1,4 @@
-/* $Id: acctproc.c,v 1.19 2019/06/17 15:03:34 florian Exp $ */
+/* $Id: acctproc.c,v 1.20 2019/06/17 15:20:10 tb Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -184,9 +184,7 @@ op_thumbprint(int fd, EVP_PKEY *pkey)
rc = 1;
out:
- if (ctx != NULL)
- EVP_MD_CTX_free(ctx);
-
+ EVP_MD_CTX_free(ctx);
free(thumb);
free(dig);
free(dig64);