1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Merge pull request #1128 from josephbisch/fix-sasl-buffer-free

Properly free sasl_buffer GString

Credits to oss-fuzz
This commit is contained in:
ailin-nemui 2019-09-30 15:39:20 +02:00 committed by GitHub
commit 4cc286634a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -456,7 +456,9 @@ static void sig_destroyed(IRC_SERVER_REC *server)
gslist_free_full(server->cap_queue, (GDestroyNotify) g_free);
server->cap_queue = NULL;
g_free_and_null(server->sasl_buffer);
/* was g_free_and_null, but can't use on a GString */
g_string_free(server->sasl_buffer, TRUE);
server->sasl_buffer = NULL;
/* these are dynamically allocated only if isupport was sent */
g_hash_table_foreach(server->isupport,