diff options
author | 2018-07-28 15:25:23 +0000 | |
---|---|---|
committer | 2018-07-28 15:25:23 +0000 | |
commit | f53ebcad9e7e8b7ce99500f5fab632f2c45b80ee (patch) | |
tree | 6a50fc707f8077d266c964231e3d6cae8a668f6d /usr.sbin/acme-client/keyproc.c | |
parent | Make use of PCI_FLAGS_MSI_ENABLED such that drivers for hardware with broken (diff) | |
download | wireguard-openbsd-f53ebcad9e7e8b7ce99500f5fab632f2c45b80ee.tar.xz wireguard-openbsd-f53ebcad9e7e8b7ce99500f5fab632f2c45b80ee.zip |
Remove NULL checks before (most) libcrypto *_free() functions.
From Ross L. Richardson, thanks!
ok deraadt
Diffstat (limited to 'usr.sbin/acme-client/keyproc.c')
-rw-r--r-- | usr.sbin/acme-client/keyproc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/acme-client/keyproc.c b/usr.sbin/acme-client/keyproc.c index 4f383792b21..6551a03ebcf 100644 --- a/usr.sbin/acme-client/keyproc.c +++ b/usr.sbin/acme-client/keyproc.c @@ -1,4 +1,4 @@ -/* $Id: keyproc.c,v 1.9 2017/03/26 18:41:02 deraadt Exp $ */ +/* $Id: keyproc.c,v 1.10 2018/07/28 15:25:23 tb Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -256,8 +256,7 @@ out: X509_REQ_free(x); if (name != NULL) X509_NAME_free(name); - if (pkey != NULL) - EVP_PKEY_free(pkey); + EVP_PKEY_free(pkey); ERR_print_errors_fp(stderr); ERR_free_strings(); return (rc); |