|
Added
Link Here
|
| 1 |
--- src/engine/server/es_server.c.orig 2010-06-23 09:41:50.000000000 +0200 |
| 2 |
+++ src/engine/server/es_server.c 2010-06-23 09:42:21.000000000 +0200 |
| 3 |
@@ -303,7 +303,7 @@ |
| 4 |
|
| 5 |
void server_kick(int client_id, const char *reason) |
| 6 |
{ |
| 7 |
- if(client_id < 0 || client_id > MAX_CLIENTS) |
| 8 |
+ if(client_id < 0 || client_id >= MAX_CLIENTS) |
| 9 |
return; |
| 10 |
|
| 11 |
if(clients[client_id].state != SRVCLIENT_STATE_EMPTY) |
| 12 |
@@ -1244,7 +1244,7 @@ |
| 13 |
NETADDR addr; |
| 14 |
int cid = atoi(str); |
| 15 |
|
| 16 |
- if(cid < 0 || cid > MAX_CLIENTS || clients[cid].state == SRVCLIENT_STATE_EMPTY) |
| 17 |
+ if(cid < 0 || cid >= MAX_CLIENTS || clients[cid].state == SRVCLIENT_STATE_EMPTY) |
| 18 |
{ |
| 19 |
dbg_msg("server", "invalid client id"); |
| 20 |
return; |