summaryrefslogtreecommitdiffstats
path: root/7d4eaed41ae94237ed9e4ae72ac166b6e7617047.patch
blob: e05780bef6a4fa6ff53153b55af38cfa3a363006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 7d4eaed41ae94237ed9e4ae72ac166b6e7617047 Mon Sep 17 00:00:00 2001
From: Yurun <admin@yurunsoft.com>
Date: Sun, 20 Sep 2020 14:43:03 +0800
Subject: [PATCH] Fix #3681 (#3682)

---
 src/protocol/ssl.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/protocol/ssl.cc b/src/protocol/ssl.cc
index 61a3e56c0e..c9069c1a8a 100644
--- a/src/protocol/ssl.cc
+++ b/src/protocol/ssl.cc
@@ -71,9 +71,11 @@ static int swSSL_verify_cookie(SSL *ssl, const uchar *cookie, uint cookie_len);
 static void MAYBE_UNUSED swSSL_lock_callback(int mode, int type, const char *file, int line);
 
 static const SSL_METHOD *swSSL_get_method(swSSL_option *option) {
+#ifdef SW_SUPPORT_DTLS
     if (option->protocols & SW_SSL_DTLS) {
         return DTLS_method();
     }
+#endif
     return SSLv23_method();
 }