From 9e0d103ff7c8493e1273abf490884345a9c8c10f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 25 Mar 2017 14:07:46 +0100 Subject: relay: check that pointers received in arguments are not NULL in "free" functions Functions: - relay_irc_free - relay_client_outqueue_free - relay_raw_message_free - relay_weechat_msg_free - relay_weechat_nicklist_item_free - relay_weechat_nicklist_free - relay_weechat_free --- src/plugins/relay/irc/relay-irc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/relay/irc/relay-irc.c') diff --git a/src/plugins/relay/irc/relay-irc.c b/src/plugins/relay/irc/relay-irc.c index 3292002ea..3085b1acc 100644 --- a/src/plugins/relay/irc/relay-irc.c +++ b/src/plugins/relay/irc/relay-irc.c @@ -1859,6 +1859,9 @@ relay_irc_alloc_with_infolist (struct t_relay_client *client, void relay_irc_free (struct t_relay_client *client) { + if (!client) + return; + if (client->protocol_data) { if (RELAY_IRC_DATA(client, address)) -- cgit v1.2.3