summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2007-08-12 18:56:14 +0000
committerDr. Stephen Henson <steve@openssl.org>2007-08-12 18:56:14 +0000
commit367eb1f125063b9e76b6eaaacd85705023d435b4 (patch)
tree40a59b5e201e9d62318be898fac42afaf3ef9da4 /ssl/ssl_lib.c
parent3444961787a7205822f7326ae1e062391c8f0bcb (diff)
Fix warning and make no-tlsext work.
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r--ssl/ssl_lib.c2
1 files changed, 2 insertions, 0 deletions
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);