tags 681812 patch
thanks

> I believe the following change will fix it:
>
> http://code.google.com/p/oax/source/detail?r=304

Hi Poul!

Thanks, i've rebuilt the package and it works. I've also
added DEP3 headers to your patch and attached it to this
bugreport.

Regards
Markus
Description: Fix for crashing the server by making a callvote to kick a player which does not exist
Author: Poul Sander <sago...@gmail.com>
Origin: upstream
Bug-<Vendor>: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681812
Applied-Upstream: http://code.google.com/p/oax/source/detail?r=304
Last-Update: 2012-09-13
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/code/game/g_cmds.c
+++ b/code/game/g_cmds.c
@@ -1812,7 +1812,7 @@ void Cmd_CallVote_f( gentity_t *ent ) {
 		Com_sprintf( level.voteDisplayString, sizeof( level.voteDisplayString ), "Shuffle teams?" );
         } else if ( !Q_stricmp( arg1, "kick" ) ) {
                 i = 0;
-                while(Q_stricmp(arg2,(g_entities+i)->client->pers.netname)) {
+ 		while( !(g_entities+i) || !((g_entities+i)->client) || Q_stricmp(arg2,(g_entities+i)->client->pers.netname)) {
                     //Not client i, try next
                     i++;
                     if(i>=MAX_CLIENTS){ //Only numbers <128 is clients

Attachment: signature.asc
Description: Digital signature

Reply via email to