mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 19:23:13 +02:00
irc: return NULL in function irc_message_get_address_from_host if the received host is NULL
This commit is contained in:
@@ -495,6 +495,9 @@ irc_message_get_address_from_host (const char *host)
|
||||
char host2[256], *pos_space, *pos;
|
||||
const char *ptr_host;
|
||||
|
||||
if (!host)
|
||||
return NULL;
|
||||
|
||||
address[0] = '\0';
|
||||
if (host)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user