diff options
author | tb <tb@openbsd.org> | 2019-06-17 15:20:10 +0000 |
---|---|---|
committer | tb <tb@openbsd.org> | 2019-06-17 15:20:10 +0000 |
commit | 810824d0aabf25711f2aab4cc45ebd23dea040d0 (patch) | |
tree | 74ac25d416d242f06450c980582c017dd92ac0db /usr.sbin/acme-client | |
parent | free(9) sizes. (diff) | |
download | wireguard-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.c | 6 |
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); |