From: jsing Date: Thu, 22 Jun 2017 17:47:56 +0000 (+0000) Subject: Remove dead code that has remained hiding since ressl.c r1.14! X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=781c225768f7169d3b20f2814045ab6f82a7b70e;p=openbsd Remove dead code that has remained hiding since ressl.c r1.14! --- diff --git a/lib/libtls/tls.c b/lib/libtls/tls.c index 7906788b083..77b936ed37c 100644 --- a/lib/libtls/tls.c +++ b/lib/libtls/tls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls.c,v 1.63 2017/05/07 01:59:34 jsing Exp $ */ +/* $OpenBSD: tls.c,v 1.64 2017/06/22 17:47:56 jsing Exp $ */ /* * Copyright (c) 2014 Joel Sing * @@ -309,7 +309,6 @@ tls_configure_ssl_keypair(struct tls *ctx, SSL_CTX *ssl_ctx, struct tls_keypair *keypair, int required) { EVP_PKEY *pkey = NULL; - X509 *cert = NULL; BIO *bio = NULL; if (!required && @@ -330,7 +329,6 @@ tls_configure_ssl_keypair(struct tls *ctx, SSL_CTX *ssl_ctx, } if (tls_keypair_cert_hash(keypair, &keypair->cert_hash) == -1) goto err; - cert = NULL; } if (keypair->key_mem != NULL) { @@ -379,7 +377,6 @@ tls_configure_ssl_keypair(struct tls *ctx, SSL_CTX *ssl_ctx, err: EVP_PKEY_free(pkey); - X509_free(cert); BIO_free(bio); return (1);