mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-11-12 14:57:20 +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;
|
||||
totalByteLimit = NETWORK_SEND_BULK_BYTES_MAX;
|
||||
break;
|
||||
|
||||
default:
|
||||
return SendResult::FAILED;
|
||||
}
|
||||
if (delivery != Delivery::BULK && !SendPriority(service))
|
||||
{
|
||||
@@ -987,6 +990,9 @@ struct CNetworkServer::Impl
|
||||
totalCountLimit = NETWORK_SEND_BULK_COUNT_MAX;
|
||||
totalByteLimit = NETWORK_SEND_BULK_BYTES_MAX;
|
||||
break;
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
if (delivery != Delivery::BULK && !SendPriority(service))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user