Revision | adcf044c507a98b9ef3d3f5552056da852807dfc (tree) |
---|---|
Time | 2009-07-20 04:05:27 |
Author | Benjamin Berkels <torr.samaho@quan...> |
Commiter | Benjamin Berkels |
Fixed: Parsing ban, white or admin list under Linux could crash.
SVN r2275 (0.97d3-hotfixes)
@@ -17,6 +17,7 @@ | ||
17 | 17 | |
18 | 18 | + - Added server side client command protection. If a client floods the server with protected commands (more than 6 in 60 seconds), the client is kicked and banned for 10 minutes. [Torr Samaho, SuperGod] |
19 | 19 | - - Fixed: Certain kinds of chat messages that only consist of color codes and white spaces wiped out all other messages currently on the screen. [Torr Samaho, SuperGod] |
20 | +- - Fixed: Parsing ban, white or admin list under Linux could crash. [Torr Samaho] | |
20 | 21 | ! - The server doesn't relay chat messages that only consist of color codes and white spaces anymore. [Torr Samaho, SuperGod] |
21 | 22 | |
22 | 23 | v0.97d4 |
@@ -675,7 +675,6 @@ | ||
675 | 675 | |
676 | 676 | if ( feof( pFile )) |
677 | 677 | { |
678 | - fclose( pFile ); | |
679 | 678 | return ( false ); |
680 | 679 | } |
681 | 680 | } |
@@ -744,7 +743,6 @@ | ||
744 | 743 | |
745 | 744 | if ( feof( pFile )) |
746 | 745 | { |
747 | - fclose( pFile ); | |
748 | 746 | return ( false ); |
749 | 747 | } |
750 | 748 | // If we've hit a comment, skip until the end of the line (or the end of the file) and get out. |
@@ -762,7 +760,6 @@ | ||
762 | 760 | |
763 | 761 | if ( lPosition == 256 ) |
764 | 762 | { |
765 | - fclose( pFile ); | |
766 | 763 | return ( false ); |
767 | 764 | } |
768 | 765 |