Bug fix buffer overflow. Only temporary, until bugfix in main is available

This commit is contained in:
petriVM18 2021-04-15 13:43:17 +02:00
parent f094558f11
commit db07e92b01

View File

@ -178,7 +178,7 @@ ReturnValue_t MessageQueue::receiveMessage(MessageQueueMessageIF* message) {
} else {
//No message was received. Keep lastPartner anyway, I might send
//something later. But still, delete packet content.
memset(message->getData(), 0, message->getMaximumMessageSize());
memset(message->getBuffer(), 0, message->getMaximumMessageSize());
switch(errno){
case EAGAIN:
//O_NONBLOCK or MQ_NONBLOCK was set and there are no messages