summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAilin Nemui <ailin@z30a.localdomain>2018-01-25 15:08:26 +0100
committerAilin Nemui <ailin@z30a.localdomain>2018-01-25 15:08:26 +0100
commitaf087e110373090e65184aebc3515555f64f4a33 (patch)
tree1a9d364eb8b389bd21c2e3a08f28b4e38d9a4d01
parentf5aa829bd084d279f9ae7eb27a52ea674adfed5d (diff)
downloadirssi-af087e110373090e65184aebc3515555f64f4a33.zip
fix sequence error
-rw-r--r--src/core/network-openssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/network-openssl.c b/src/core/network-openssl.c
index 9e15d5c7..9fddf073 100644
--- a/src/core/network-openssl.c
+++ b/src/core/network-openssl.c
@@ -384,7 +384,9 @@ static GIOFuncs irssi_ssl_channel_funcs = {
gboolean irssi_ssl_init(void)
{
+#if (OPENSSL_VERSION_NUMBER >= 0x10002000L)
int success;
+#endif
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER)
if (!OPENSSL_init_ssl(OPENSSL_INIT_SSL_DEFAULT, NULL)) {
@@ -411,8 +413,6 @@ gboolean irssi_ssl_init(void)
store = NULL;
/* Don't return an error; the user might have their own cafile/capath. */
}
-#else
- success = success = TRUE;
#endif
ssl_inited = TRUE;