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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user