From 367eb1f125063b9e76b6eaaacd85705023d435b4 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 12 Aug 2007 18:56:14 +0000 Subject: Fix warning and make no-tlsext work. --- ssl/ssl_lib.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ssl/ssl_lib.c') diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 17caf6679f..12b8f3bfb6 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -2573,8 +2573,10 @@ SSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX* ctx) { if (ssl->ctx == ctx) return ssl->ctx; +#ifndef OPENSSL_NO_TLSEXT if (ctx == NULL) ctx = ssl->initial_ctx; +#endif if (ssl->cert != NULL) ssl_cert_free(ssl->cert); ssl->cert = ssl_cert_dup(ctx->cert); -- cgit v1.2.3