bug found by unittest
This commit is contained in:
parent
253aa30263
commit
6c711415c1
@ -83,7 +83,7 @@ void ActionHelper::prepareExecution(MessageQueueId_t commandedBy, ActionId_t act
|
|||||||
}
|
}
|
||||||
Action* action = actionIter->second;
|
Action* action = actionIter->second;
|
||||||
result = action->deSerialize(&dataPtr, &size, SerializeIF::Endianness::NETWORK);
|
result = action->deSerialize(&dataPtr, &size, SerializeIF::Endianness::NETWORK);
|
||||||
if ((result != HasReturnvaluesIF::RETURN_OK)){
|
if ((result != returnvalue::OK) or (size != 0)){
|
||||||
CommandMessage reply;
|
CommandMessage reply;
|
||||||
ActionMessage::setStepReply(&reply, actionId, 0, HasActionsIF::INVALID_PARAMETERS);
|
ActionMessage::setStepReply(&reply, actionId, 0, HasActionsIF::INVALID_PARAMETERS);
|
||||||
queueToUse->sendMessage(commandedBy, &reply);
|
queueToUse->sendMessage(commandedBy, &reply);
|
||||||
|
@ -57,7 +57,7 @@ void SimpleActionHelper::prepareExecution(MessageQueueId_t commandedBy, ActionId
|
|||||||
}
|
}
|
||||||
Action* action = actionIter->second;
|
Action* action = actionIter->second;
|
||||||
result = action->deSerialize(&dataPtr, &size, SerializeIF::Endianness::NETWORK);
|
result = action->deSerialize(&dataPtr, &size, SerializeIF::Endianness::NETWORK);
|
||||||
if (result != HasReturnvaluesIF::RETURN_OK){
|
if ((result != returnvalue::OK) or (size != 0)) {
|
||||||
CommandMessage reply;
|
CommandMessage reply;
|
||||||
ActionMessage::setStepReply(&reply, actionId, 0, HasActionsIF::INVALID_PARAMETERS);
|
ActionMessage::setStepReply(&reply, actionId, 0, HasActionsIF::INVALID_PARAMETERS);
|
||||||
queueToUse->sendMessage(commandedBy, &reply);
|
queueToUse->sendMessage(commandedBy, &reply);
|
||||||
|
Loading…
Reference in New Issue
Block a user