Please check for ((cmd->target_component != status->component_id) && (cmd->target_component != 0)), as zero encodes "all" and is valid for components.