From 2f4b09a3fd677b7fb66723bd64358dd0798a2af5 Mon Sep 17 00:00:00 2001 From: thilo Date: Sat, 12 Apr 2008 17:00:18 +0000 Subject: - 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 --- code/qcommon/files.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'code/qcommon/files.c') 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; } -- cgit v1.2.3