diff options
author | RichardHitt <rbh00@netcom.com> | 2013-01-10 00:13:25 -0800 |
---|---|---|
committer | RichardHitt <rbh00@netcom.com> | 2013-01-10 00:13:25 -0800 |
commit | 475eb9fcaab1d846a3617f587f22bd77cdeddd5e (patch) | |
tree | bab905c37c1414ceab46e7dbf945fdb89c4ffed5 /src/common | |
parent | 672dbf75d6d3d47135be49568ebcce917d6c188c (diff) |
Fix crash by detecting NULL channel in url_join_only() and just returning.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/outbound.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c index f8f73dd6..8241d78f 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -3350,6 +3350,8 @@ static void url_join_only (server *serv, char *tbuf, char *channel) { /* already connected, JOIN only. FIXME: support keys? */ + if (channel == NULL) + return; tbuf[0] = '#'; /* tbuf is 4kb */ safe_strcpy ((tbuf + 1), channel, 256); |