diff options
author | Nei <ailin.nemui@gmail.com> | 2017-01-02 17:01:05 +0000 |
---|---|---|
committer | Nei <ailin.nemui@gmail.com> | 2017-01-02 17:01:05 +0000 |
commit | c3cca5ecf3bd86da5056b8d706a300422e59594b (patch) | |
tree | c0b25b08a99cec2d2ea74244f26504764f81772b | |
parent | 24d2d039b5bed6e42727784a15e67094dde69b1c (diff) | |
parent | 508d2e0860992d6906b5a7b73017edbaa8c94d98 (diff) | |
download | irssi-c3cca5ecf3bd86da5056b8d706a300422e59594b.zip |
Merge branch '1-null-pointer-dereference-in-irc_nickcmp_rfc1459' into 'security'
bail out if nick is NULL
See merge request !3
-rw-r--r-- | src/irc/core/irc-queries.c | 2 |
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; |