1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

irc: force host to NULL after free

This commit is contained in:
Sébastien Helleu
2015-01-25 17:25:45 +01:00
parent 0fade5ccd0
commit 4c1e13fd45
+3
View File
@@ -4271,7 +4271,10 @@ IRC_PROTOCOL_CALLBACK(354)
if (ptr_nick)
{
if (ptr_nick->host)
{
free (ptr_nick->host);
ptr_nick->host = NULL;
}
length = strlen (argv[4]) + 1 + strlen (argv[5]) + 1;
ptr_nick->host = malloc (length);
if (ptr_nick->host)