summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2018-04-23 13:10:19 +0000
committertb <>2018-04-23 13:10:19 +0000
commit8984e0f71b587149aab60ca5a589d4907b65ab29 (patch)
treec200cb867596f872aa14dd8ed53f0010983bc9a0 /src
parent42c19c76a5e82d4dff377eb87c9a06633f68c7c4 (diff)
downloadopenbsd-8984e0f71b587149aab60ca5a589d4907b65ab29.tar.gz
openbsd-8984e0f71b587149aab60ca5a589d4907b65ab29.tar.bz2
openbsd-8984e0f71b587149aab60ca5a589d4907b65ab29.zip
Make the NULL check a separate if statement for readability and
grepability. Req. by jsing
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/asn1/x_crl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/x_crl.c b/src/lib/libcrypto/asn1/x_crl.c
index 9ab37c3548..890623c47c 100644
--- a/src/lib/libcrypto/asn1/x_crl.c
+++ b/src/lib/libcrypto/asn1/x_crl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x_crl.c,v 1.31 2018/04/23 09:00:19 tb Exp $ */ 1/* $OpenBSD: x_crl.c,v 1.32 2018/04/23 13:10:19 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -675,7 +675,9 @@ X509_CRL_METHOD_new(int (*crl_init)(X509_CRL *crl),
675void 675void
676X509_CRL_METHOD_free(X509_CRL_METHOD *m) 676X509_CRL_METHOD_free(X509_CRL_METHOD *m)
677{ 677{
678 if (m == NULL || !(m->flags & X509_CRL_METHOD_DYNAMIC)) 678 if (m == NULL)
679 return;
680 if (!(m->flags & X509_CRL_METHOD_DYNAMIC))
679 return; 681 return;
680 free(m); 682 free(m);
681} 683}