SV_EXTENSION sanity checks

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2987 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-10-12 15:33:14 +00:00
parent ead8b54419
commit 1f64bbd6d5
+2 -1
View File
@@ -2862,6 +2862,7 @@ void process(ENetPacket *packet, int sender, int chan) // sender may be -1
getstring(text, p, 64);
char *ext = text; // extension specifier in the form of OWNER::EXTENSION, see sample below
int n = getint(p); // length of data after the specifier
if(n > 50) return;
// sample
if(!strcmp(ext, "driAn::writelog"))
@@ -2880,7 +2881,7 @@ void process(ENetPacket *packet, int sender, int chan) // sender may be -1
// add other extensions here
else while(n--) getint(p); // ignore unknown extensions
else for(; n > 0; n--) getint(p); // ignore unknown extensions
break;
}