mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-11-14 07:47:19 +00:00
[idd] network: handle invalid delivery values
This commit is contained in:
@@ -930,6 +930,9 @@ struct CNetworkServer::Impl
|
|||||||
totalCountLimit = NETWORK_SEND_BULK_COUNT_MAX;
|
totalCountLimit = NETWORK_SEND_BULK_COUNT_MAX;
|
||||||
totalByteLimit = NETWORK_SEND_BULK_BYTES_MAX;
|
totalByteLimit = NETWORK_SEND_BULK_BYTES_MAX;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return SendResult::FAILED;
|
||||||
}
|
}
|
||||||
if (delivery != Delivery::BULK && !SendPriority(service))
|
if (delivery != Delivery::BULK && !SendPriority(service))
|
||||||
{
|
{
|
||||||
@@ -987,6 +990,9 @@ struct CNetworkServer::Impl
|
|||||||
totalCountLimit = NETWORK_SEND_BULK_COUNT_MAX;
|
totalCountLimit = NETWORK_SEND_BULK_COUNT_MAX;
|
||||||
totalByteLimit = NETWORK_SEND_BULK_BYTES_MAX;
|
totalByteLimit = NETWORK_SEND_BULK_BYTES_MAX;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
if (delivery != Delivery::BULK && !SendPriority(service))
|
if (delivery != Delivery::BULK && !SendPriority(service))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user