aboutsummaryrefslogtreecommitdiffstats
path: root/code/server
diff options
context:
space:
mode:
authortjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-05-10 01:39:58 +0000
committertjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-05-10 01:39:58 +0000
commita2e7301e6bbaa61f689d89020f419628104e1077 (patch)
treeaaaa2bccf2b89c8ab34cecc99101f200be9b708f /code/server
parent60696cebc57bd37f10e996ad3e09f3ff23cdc7d3 (diff)
downloadioquake3-aero-a2e7301e6bbaa61f689d89020f419628104e1077.tar.gz
ioquake3-aero-a2e7301e6bbaa61f689d89020f419628104e1077.zip
* (bug 3066) rcon rate-limiting was not compatible with the eventual
integer overflow in Com_Milliseconds() (R1CH) git-svn-id: svn://svn.icculus.org/quake3/trunk@1083 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/server')
-rw-r--r--code/server/sv_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/server/sv_main.c b/code/server/sv_main.c
index ed07b87..8906d00 100644
--- a/code/server/sv_main.c
+++ b/code/server/sv_main.c
@@ -461,7 +461,7 @@ void SVC_RemoteCommand( netadr_t from, msg_t *msg ) {
// TTimo - https://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=534
time = Com_Milliseconds();
- if (time<(lasttime+500)) {
+ if ( (unsigned)( time - lasttime ) < 500u ) {
return;
}
lasttime = time;