summaryrefslogtreecommitdiff
path: root/redfish-core/lib/update_service.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/lib/update_service.hpp')
-rw-r--r--redfish-core/lib/update_service.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp
index 9ef8311984..8617071e45 100644
--- a/redfish-core/lib/update_service.hpp
+++ b/redfish-core/lib/update_service.hpp
@@ -405,6 +405,12 @@ static void monitorForSoftwareAvailable(
return;
}
+ if (req.ioService == nullptr)
+ {
+ messages::internalError(asyncResp->res);
+ return;
+ }
+
fwAvailableTimer =
std::make_unique<boost::asio::steady_timer>(*req.ioService);