Apply remote crash exploit fix to public repo.
authorChris Porter <chris@warp13.co.uk>
Mon Mar 24 01:33:32 2008 +0000 (22 months ago)
changeset 1472da2b881d9f5
parent 146ee21279cce9b
child 148ac2106e12693
child 1507afd40e93981
Apply remote crash exploit fix to public repo.
ircd/s_user.c
     1.1 --- a/ircd/s_user.c	Sat Mar 08 02:20:20 2008 +0000
     1.2 +++ b/ircd/s_user.c	Mon Mar 24 01:33:32 2008 +0000
     1.3 @@ -1429,7 +1429,7 @@
     1.4            ClearParanoid(sptr);
     1.5  	break;
     1.6        case 'r':
     1.7 -	if (what == MODE_ADD) {
     1.8 +	if ((what == MODE_ADD) && *(p + 1)) {
     1.9  	  account = *(++p);
    1.10  	  SetAccount(sptr);
    1.11  	}