From f16136c29bbeeac0af0782023c76b55fde5562f1 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 7 Apr 2021 20:56:50 +0700 Subject: [PATCH] remove dead code, variable gn will currently always be null --- src/ssl.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 49378cdf3..b27d82980 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -10128,13 +10128,6 @@ void* wolfSSL_X509_get_ext_d2i(const WOLFSSL_X509* x509, int nid, int* c, goto err; } } - else if (gn) { - if (wolfSSL_sk_GENERAL_NAME_push(sk, gn) != WOLFSSL_SUCCESS) { - WOLFSSL_MSG("Error pushing GENERAL_NAME object onto " - "stack."); - goto err; - } - } ret = sk;