summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_rsa.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2017-01-24 14:57:31 +0000
committerjsing <jsing@openbsd.org>2017-01-24 14:57:31 +0000
commit2da53ce5a262494b116213d78f7f70f77a590551 (patch)
tree08a54d1f04c49d31954fb8d623d2a1a9c1ebad0f /lib/libssl/ssl_rsa.c
parentKill some unused variables found by clang. (diff)
downloadwireguard-openbsd-2da53ce5a262494b116213d78f7f70f77a590551.tar.xz
wireguard-openbsd-2da53ce5a262494b116213d78f7f70f77a590551.zip
sk_pop_free() checks for NULL so do not bother doing it from the callers.
Diffstat (limited to 'lib/libssl/ssl_rsa.c')
-rw-r--r--lib/libssl/ssl_rsa.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libssl/ssl_rsa.c b/lib/libssl/ssl_rsa.c
index 82c8cc0a870..03eedc0d8a7 100644
--- a/lib/libssl/ssl_rsa.c
+++ b/lib/libssl/ssl_rsa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_rsa.c,v 1.24 2017/01/23 22:34:38 beck Exp $ */
+/* $OpenBSD: ssl_rsa.c,v 1.25 2017/01/24 14:57:31 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -671,10 +671,8 @@ ssl_ctx_use_certificate_chain_bio(SSL_CTX *ctx, BIO *in)
int r;
unsigned long err;
- if (ctx->extra_certs != NULL) {
- sk_X509_pop_free(ctx->extra_certs, X509_free);
- ctx->extra_certs = NULL;
- }
+ sk_X509_pop_free(ctx->extra_certs, X509_free);
+ ctx->extra_certs = NULL;
while ((ca = PEM_read_bio_X509(in, NULL,
ctx->default_passwd_callback,