From 614bddbbd83c2a623c2104da69a8d11c1dcbe5d7 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 21 Jul 2003 04:15:18 +0000 Subject: [PATCH] fix an error in a last minute change (was using maxcontentlength in Write, which takes contentlength) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3295 d7cf8633-e32d-0410-b094-e92efae38249 --- lhnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lhnet.c b/lhnet.c index 3854e2d4..d9597f21 100644 --- a/lhnet.c +++ b/lhnet.c @@ -558,7 +558,7 @@ int LHNET_Read(lhnetsocket_t *lhnetsocket, void *content, int maxcontentlength, int LHNET_Write(lhnetsocket_t *lhnetsocket, const void *content, int contentlength, const lhnetaddress_t *address) { int value = -1; - if (!lhnetsocket || !address || !content || maxcontentlength < 1) + if (!lhnetsocket || !address || !content || contentlength < 1) return -1; if (lhnetsocket->address.addresstype != address->addresstype) return -1; -- 2.39.2