Apply remote crash exploit fix to public repo.
authorChris Porter <chris@warp13.co.uk>
Mon Mar 24 01:33:32 2008 +0000 (7 weeks ago)
changeset 1472da2b881d9f5
manifest2da2b881d9f5
parent 146ee21279cce9b
tagtip
Apply remote crash exploit fix to public repo.
ircd/s_user.c
--- a/ircd/s_user.c Sat Mar 08 02:20:20 2008 +0000
+++ b/ircd/s_user.c Mon Mar 24 01:33:32 2008 +0000
@@ -1429,7 +1429,7 @@ int set_user_mode(struct Client *cptr, s
ClearParanoid(sptr);
break;
case 'r':
- if (what == MODE_ADD) {
+ if ((what == MODE_ADD) && *(p + 1)) {
account = *(++p);
SetAccount(sptr);
}