]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a typo in challenge flood protection
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Mar 2012 05:49:43 +0000 (05:49 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 16 Mar 2012 05:50:41 +0000 (06:50 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11760 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=824342340b29f23f9147e6675d931f0057daefbd

netconn.c

index eaf5dbd6545a4c19f7d0fd7e398922fcf1631404..395f6d3303219460de5a8199cc6dd3fc58bb3cb0 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -2843,7 +2843,7 @@ static int NetConn_ServerParsePacket(lhnetsocket_t *mysocket, unsigned char *dat
                        else
                        {
                                // flood control: drop if requesting challenge too often
                        else
                        {
                                // flood control: drop if requesting challenge too often
-                               if(challenge[i].time < realtime - net_challengefloodblockingtimeout.value)
+                               if(challenge[i].time > realtime - net_challengefloodblockingtimeout.value)
                                        return true;
                        }
                        challenge[i].time = realtime;
                                        return true;
                        }
                        challenge[i].time = realtime;