Commit MetaInfo

Revisionadcf044c507a98b9ef3d3f5552056da852807dfc (tree)
Time2009-07-20 04:05:27
AuthorBenjamin Berkels <torr.samaho@quan...>
CommiterBenjamin Berkels

Log Message

Fixed: Parsing ban, white or admin list under Linux could crash.

SVN r2275 (0.97d3-hotfixes)

Change Summary

Incremental Difference

diff -r bbcfea543eaa -r adcf044c507a docs/Skulltag Version History.txt
--- a/docs/Skulltag Version History.txt Sun Jul 19 11:29:29 2009 +0000
+++ b/docs/Skulltag Version History.txt Sun Jul 19 19:05:27 2009 +0000
@@ -17,6 +17,7 @@
1717
1818 + - 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]
1919 - - 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]
2021 ! - The server doesn't relay chat messages that only consist of color codes and white spaces anymore. [Torr Samaho, SuperGod]
2122
2223 v0.97d4
diff -r bbcfea543eaa -r adcf044c507a src/networkshared.cpp
--- a/src/networkshared.cpp Sun Jul 19 11:29:29 2009 +0000
+++ b/src/networkshared.cpp Sun Jul 19 19:05:27 2009 +0000
@@ -675,7 +675,6 @@
675675
676676 if ( feof( pFile ))
677677 {
678- fclose( pFile );
679678 return ( false );
680679 }
681680 }
@@ -744,7 +743,6 @@
744743
745744 if ( feof( pFile ))
746745 {
747- fclose( pFile );
748746 return ( false );
749747 }
750748 // 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 @@
762760
763761 if ( lPosition == 256 )
764762 {
765- fclose( pFile );
766763 return ( false );
767764 }
768765
Show on old repository browser