diff options
author | Ed Tanous <edtanous@google.com> | 2023-11-01 00:50:03 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2023-11-06 08:48:10 +0300 |
commit | 6804b5c8d8bd4c571b8179589f88bcf1a1502f7b (patch) | |
tree | ec36fc3aa9c49511633f7949d919bc4e97fbd8e2 /redfish-core | |
parent | 95bdb5f061023498a4390f17d436517d4be32b29 (diff) | |
download | bmcweb-6804b5c8d8bd4c571b8179589f88bcf1a1502f7b.tar.xz |
Remove use after free in error handling path
Change-Id: I04476b016584f1d19af035ae51e0c04076b4de0b
Signed-off-by: Ed Tanous <edtanous@google.com>
Diffstat (limited to 'redfish-core')
-rw-r--r-- | redfish-core/lib/sensors.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redfish-core/lib/sensors.hpp b/redfish-core/lib/sensors.hpp index aec1ebe22e..7258d1d850 100644 --- a/redfish-core/lib/sensors.hpp +++ b/redfish-core/lib/sensors.hpp @@ -2752,7 +2752,8 @@ inline void retrieveUriToDbusMap(const std::string& chassis, if (pathIt == sensors::paths.cend()) { BMCWEB_LOG_ERROR("Wrong node provided : {}", node); - mapComplete(boost::beast::http::status::bad_request, {}); + std::map<std::string, std::string> noop; + mapComplete(boost::beast::http::status::bad_request, noop); return; } |