From c7d1d02db43b809b96238f8b557cfc2b8caa4b8a Mon Sep 17 00:00:00 2001 From: jsing <> Date: Wed, 7 Feb 2018 04:57:06 +0000 Subject: Remove guards around *_free() calls since these functions handle NULL. --- src/usr.bin/openssl/x509.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/usr.bin/openssl/x509.c') diff --git a/src/usr.bin/openssl/x509.c b/src/usr.bin/openssl/x509.c index f43b015684..8d3dc07090 100644 --- a/src/usr.bin/openssl/x509.c +++ b/src/usr.bin/openssl/x509.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.c,v 1.14 2017/01/20 08:57:12 deraadt Exp $ */ +/* $OpenBSD: x509.c,v 1.15 2018/02/07 04:57:06 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -916,8 +916,7 @@ end: X509_free(xca); EVP_PKEY_free(Upkey); EVP_PKEY_free(CApkey); - if (sigopts) - sk_OPENSSL_STRING_free(sigopts); + sk_OPENSSL_STRING_free(sigopts); X509_REQ_free(rq); ASN1_INTEGER_free(sno); sk_ASN1_OBJECT_pop_free(trust, ASN1_OBJECT_free); -- cgit v1.2.3-55-g6feb