aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon/files.c
diff options
context:
space:
mode:
authorthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-04-12 17:00:18 +0000
committerthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-04-12 17:00:18 +0000
commit2f4b09a3fd677b7fb66723bd64358dd0798a2af5 (patch)
treedbbaa32ed2043db251064baacb700ffc973b7fa3 /code/qcommon/files.c
parenta957b652bae5d1a5320eb01c349437bc7197b91a (diff)
downloadioquake3-aero-2f4b09a3fd677b7fb66723bd64358dd0798a2af5.tar.gz
ioquake3-aero-2f4b09a3fd677b7fb66723bd64358dd0798a2af5.zip
- fix a potential file descriptor leak in server side of pak downloading
- add new functions for banning clients from server, in engine part. This will also make it possible to ban ipv6 addresses in old mods. git-svn-id: svn://svn.icculus.org/quake3/trunk@1312 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon/files.c')
-rw-r--r--code/qcommon/files.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/code/qcommon/files.c b/code/qcommon/files.c
index a5efb7e..07ecfac 100644
--- a/code/qcommon/files.c
+++ b/code/qcommon/files.c
@@ -715,7 +715,8 @@ int FS_SV_FOpenFileRead( const char *filename, fileHandle_t *fp ) {
if (f) {
return FS_filelength(f);
}
- return 0;
+
+ return -1;
}