[idd] network: handle invalid delivery values

This commit is contained in:
Geoffrey McRae
2026-10-01 06:57:18 +10:00
parent 9316493738
commit 1b9199355b

View File

@@ -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))
{ {