Permalink
Browse files

Merge branch '1-null-pointer-dereference-in-irc_nickcmp_rfc1459' into…

… 'security'


bail out if nick is NULL

See merge request !3
  • Loading branch information...
Nei
Nei committed Jan 2, 2017
2 parents 24d2d03 + 508d2e0 commit c3cca5ecf3bd86da5056b8d706a300422e59594b
Showing with 2 additions and 0 deletions.
  1. +2 −0 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;

0 comments on commit c3cca5e

Please sign in to comment.