summaryrefslogtreecommitdiff
path: root/src/irc/core
diff options
context:
space:
mode:
authorNei <ailin.nemui@gmail.com>2017-01-02 17:01:05 +0000
committerNei <ailin.nemui@gmail.com>2017-01-02 17:01:05 +0000
commitc3cca5ecf3bd86da5056b8d706a300422e59594b (patch)
treec0b25b08a99cec2d2ea74244f26504764f81772b /src/irc/core
parent24d2d039b5bed6e42727784a15e67094dde69b1c (diff)
parent508d2e0860992d6906b5a7b73017edbaa8c94d98 (diff)
downloadirssi-c3cca5ecf3bd86da5056b8d706a300422e59594b.zip
Merge branch '1-null-pointer-dereference-in-irc_nickcmp_rfc1459' into 'security'
bail out if nick is NULL See merge request !3
Diffstat (limited to 'src/irc/core')
-rw-r--r--src/irc/core/irc-queries.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irc/core/irc-queries.c b/src/irc/core/irc-queries.c
index 12861744..77a5289d 100644
--- a/src/irc/core/irc-queries.c
+++ b/src/irc/core/irc-queries.c
@@ -45,6 +45,8 @@ QUERY_REC *irc_query_find(IRC_SERVER_REC *server, const char *nick)
{
GSList *tmp;
+ g_return_val_if_fail(nick != NULL, NULL);
+
for (tmp = server->queries; tmp != NULL; tmp = tmp->next) {
QUERY_REC *rec = tmp->data;