-/* $Id: acctproc.c,v 1.11 2017/01/24 13:32:55 jsing Exp $ */
+/* $Id: acctproc.c,v 1.12 2018/07/28 15:25:23 tb Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
close(netsock);
if (f != NULL)
fclose(f);
- if (pkey != NULL)
- EVP_PKEY_free(pkey);
+ EVP_PKEY_free(pkey);
ERR_print_errors_fp(stderr);
ERR_free_strings();
return rc;
-/* $Id: certproc.c,v 1.10 2017/01/24 13:32:55 jsing Exp $ */
+/* $Id: certproc.c,v 1.11 2018/07/28 15:25:23 tb Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
out:
close(netsock);
close(filesock);
- if (x != NULL)
- X509_free(x);
- if (chainx != NULL)
- X509_free(chainx);
+ X509_free(x);
+ X509_free(chainx);
free(csr);
free(url);
free(chain);
-/* $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>
*
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);
-/* $Id: revokeproc.c,v 1.13 2017/07/08 13:37:23 tb Exp $ */
+/* $Id: revokeproc.c,v 1.14 2018/07/28 15:25:23 tb Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
close(fd);
if (f != NULL)
fclose(f);
- if (x != NULL)
- X509_free(x);
- if (bio != NULL)
- BIO_free(bio);
+ X509_free(x);
+ BIO_free(bio);
free(san);
free(path);
free(der);
-/* $Id: rsa.c,v 1.6 2017/01/24 13:32:55 jsing Exp $ */
+/* $Id: rsa.c,v 1.7 2018/07/28 15:25:23 tb Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
warnx("%s: PEM_write_PrivateKey", fname);
err:
- if (pkey != NULL)
- EVP_PKEY_free(pkey);
+ EVP_PKEY_free(pkey);
pkey = NULL;
out:
- if (ctx != NULL)
- EVP_PKEY_CTX_free(ctx);
+ EVP_PKEY_CTX_free(ctx);
return pkey;
}