mirror of
https://github.com/osmarks/ngircd.git
synced 2025-05-23 09:34:09 +00:00
SECURITY: Fixed a severe bug in handling JOIN commands, which could
cause the server to crash. Thanks to Sebastian Vesper, <net@veoson.net>.
This commit is contained in:
parent
1e1cc6d47f
commit
079e0cf9a4
@ -10,6 +10,11 @@
|
|||||||
-- ChangeLog --
|
-- ChangeLog --
|
||||||
|
|
||||||
|
|
||||||
|
ngIRCd 0.10.3 (2007-08-01)
|
||||||
|
|
||||||
|
- SECURITY: Fixed a severe bug in handling JOIN commands, which could
|
||||||
|
cause the server to crash. Thanks to Sebastian Vesper, <net@veoson.net>.
|
||||||
|
|
||||||
ngIRCd 0.10.2 (2007-06-08)
|
ngIRCd 0.10.2 (2007-06-08)
|
||||||
|
|
||||||
ngIRCd 0.10.2-pre2 (2007-05-19)
|
ngIRCd 0.10.2-pre2 (2007-05-19)
|
||||||
@ -689,4 +694,4 @@ ngIRCd 0.0.1, 31.12.2001
|
|||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
$Id: ChangeLog,v 1.302.2.17 2007/06/08 09:05:23 alex Exp $
|
$Id: ChangeLog,v 1.302.2.18 2007/07/31 18:54:26 alex Exp $
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
#include "portab.h"
|
#include "portab.h"
|
||||||
|
|
||||||
static char UNUSED id[] = "$Id: irc-channel.c,v 1.35.2.3 2007/04/03 20:23:31 fw Exp $";
|
static char UNUSED id[] = "$Id: irc-channel.c,v 1.35.2.4 2007/07/31 18:54:30 alex Exp $";
|
||||||
|
|
||||||
#include "imp.h"
|
#include "imp.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -52,7 +52,9 @@ IRC_JOIN( CLIENT *Client, REQUEST *Req )
|
|||||||
assert( Req != NULL );
|
assert( Req != NULL );
|
||||||
|
|
||||||
/* Bad number of arguments? */
|
/* Bad number of arguments? */
|
||||||
if(( Req->argc > 2 )) return IRC_WriteStrClient( Client, ERR_NEEDMOREPARAMS_MSG, Client_ID( Client ), Req->command );
|
if (Req->argc < 1 || Req->argc > 2)
|
||||||
|
return IRC_WriteStrClient(Client, ERR_NEEDMOREPARAMS_MSG,
|
||||||
|
Client_ID(Client), Req->command);
|
||||||
|
|
||||||
/* Who is the sender? */
|
/* Who is the sender? */
|
||||||
if( Client_Type( Client ) == CLIENT_SERVER ) target = Client_Search( Req->prefix );
|
if( Client_Type( Client ) == CLIENT_SERVER ) target = Client_Search( Req->prefix );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user