summary refs log tree commit diff stats
path: root/src/common/server.c
diff options
context:
space:
mode:
authorPatrick Okraku <patrick@okraku.com>2023-11-01 19:12:32 +0100
committerPatrick Griffis <tingping@tingping.se>2023-11-05 07:12:01 -0600
commit9b76b557ecaece2a5fa862ea4dc75ed613e3fbf0 (patch)
treedd1955e089faeea589f475fa71bbc682e6e85fb5 /src/common/server.c
parent6420fd61174e6a8218bf2740605ceb9241eaf36f (diff)
Added support for SCRAM-SHA-1, SCRAM-SHA-256 and SCRAM-SHA-512
Diffstat (limited to 'src/common/server.c')
-rw-r--r--src/common/server.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/server.c b/src/common/server.c
index e14da237..97f8425d 100644
--- a/src/common/server.c
+++ b/src/common/server.c
@@ -1765,7 +1765,9 @@ server_set_defaults (server *serv)
 	g_free (serv->chanmodes);
 	g_free (serv->nick_prefixes);
 	g_free (serv->nick_modes);
-
+#ifdef USE_OPENSSL
+        g_clear_pointer (&serv->scram_session, scram_free_session);
+#endif
 	serv->chantypes = g_strdup ("#&!+");
 	serv->chanmodes = g_strdup ("beI,k,l");
 	serv->nick_prefixes = g_strdup ("@%+");
@@ -1937,6 +1939,8 @@ server_free (server *serv)
 #ifdef USE_OPENSSL
 	if (serv->ctx)
 		_SSL_context_free (serv->ctx);
+
+        g_clear_pointer (&serv->scram_session, scram_free_session);
 #endif
 
 	fe_server_callback (serv);