mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-26 18:42:43 +01:00
Problem: Out of memory condition not always checked
Solution: Use the appropriate assertion macro.
This commit is contained in:
@@ -416,6 +416,7 @@ void zmq::norm_engine_t::recv_data(NormObjectHandle object)
|
||||
{
|
||||
// This is a new stream, so create rxState with zmq decoder, etc
|
||||
rxState = new (std::nothrow) NormRxStreamState(object, options.maxmsgsize);
|
||||
errno_assert(rxState);
|
||||
|
||||
if (!rxState->Init())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user