summaryrefslogtreecommitdiffstats
path: root/3686.patch
blob: 09226cc1e079fa7fdfec0ee29a261a92dafe29ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 3ea5088acb27a4f2f0164b5621c54fb7b8767d47 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Mon, 21 Sep 2020 14:43:55 +0200
Subject: [PATCH] fix build error:  invalid conversion  from 'const char*' to
 'char*'

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

diff --git a/src/protocol/ssl.cc b/src/protocol/ssl.cc
index c9069c1a8a..2f48e0ac72 100644
--- a/src/protocol/ssl.cc
+++ b/src/protocol/ssl.cc
@@ -512,7 +512,7 @@ static int swSSL_check_name(const char *name, ASN1_STRING *pattern) {
     char *s, *end;
     size_t slen, plen;
 
-    s = name;
+    s = (char *)name;
     slen = strlen(name);
 
     uchar *p = ASN1_STRING_data(pattern);