git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3295
d7cf8633-e32d-0410-b094-
e92efae38249
int LHNET_Write(lhnetsocket_t *lhnetsocket, const void *content, int contentlength, const lhnetaddress_t *address)
{
int value = -1;
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;
return -1;
if (lhnetsocket->address.addresstype != address->addresstype)
return -1;