Merge pull request #370 from RichardHitt/pull369
Fix crash by detecting NULL channel in url_join_only() and just returnin...
This commit is contained in:
commit
4a2ecc5d6c
|
@ -3350,6 +3350,8 @@ static void
|
||||||
url_join_only (server *serv, char *tbuf, char *channel)
|
url_join_only (server *serv, char *tbuf, char *channel)
|
||||||
{
|
{
|
||||||
/* already connected, JOIN only. FIXME: support keys? */
|
/* already connected, JOIN only. FIXME: support keys? */
|
||||||
|
if (channel == NULL)
|
||||||
|
return;
|
||||||
tbuf[0] = '#';
|
tbuf[0] = '#';
|
||||||
/* tbuf is 4kb */
|
/* tbuf is 4kb */
|
||||||
safe_strcpy ((tbuf + 1), channel, 256);
|
safe_strcpy ((tbuf + 1), channel, 256);
|
||||||
|
|
Loading…
Reference in New Issue