diff options
author | Nei <ailin.nemui@gmail.com> | 2018-02-13 09:51:22 +0000 |
---|---|---|
committer | Nei <ailin.nemui@gmail.com> | 2018-02-13 09:51:22 +0000 |
commit | b0d9cb33cd9ef9da7c331409e8b7c57a6f3aef3f (patch) | |
tree | 12d9115e29443fb49a63b1a87dbda34cd500b10a /src/fe-common/core | |
parent | c2c879e8c55afcb8a737e4535c8d878407807040 (diff) | |
parent | 12483c688ae231ce5367d080720c22253855a5ce (diff) | |
download | irssi-b0d9cb33cd9ef9da7c331409e8b7c57a6f3aef3f.zip |
Merge branch 'security' into 'master'
Security
See merge request irssi/irssi!34
Diffstat (limited to 'src/fe-common/core')
-rw-r--r-- | src/fe-common/core/chat-completion.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-common/core/chat-completion.c b/src/fe-common/core/chat-completion.c index 7ecdd4a2..d610008f 100644 --- a/src/fe-common/core/chat-completion.c +++ b/src/fe-common/core/chat-completion.c @@ -173,6 +173,7 @@ static void sig_message_public(SERVER_REC *server, const char *msg, { CHANNEL_REC *channel; int own; + g_return_if_fail(nick != NULL); channel = channel_find(server, target); if (channel != NULL) { @@ -185,6 +186,7 @@ static void sig_message_join(SERVER_REC *server, const char *channel, const char *nick, const char *address) { CHANNEL_REC *chanrec; + g_return_if_fail(nick != NULL); chanrec = channel_find(server, channel); if (chanrec != NULL) |