diff options
author | Ed Tanous <edtanous@google.com> | 2022-07-01 03:44:25 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-12-28 22:38:37 +0300 |
commit | 618c14b4d77bd89c6b2e421bce0576e357b5a33b (patch) | |
tree | 002619c03a4c25c9598978a7f97268b9b48c71f4 /include/kvm_websocket.hpp | |
parent | 93f7a0d6a328037147d610a97a4dbeedc38414ef (diff) | |
download | bmcweb-618c14b4d77bd89c6b2e421bce0576e357b5a33b.tar.xz |
Fix some use-after-move issues
This diff looks bad. The only thing that changed functionally is
changing:
password(std::move(password)), roleId(std::move(roleId))
in the labmda capture to
password, roldId
because password and roleid are getting used later. Unfortunately,
clang decides to rearrange this whole lambda.
Tested: Passes cppcheck.
'''
curl -vvvv --insecure --user root:0penBmc -X PATCH -d '{"Password": "0penBmc1"}' https://192.168.7.2/redfish/v1/AccountService/Accounts/root
'''
Succeeds at patching the root password.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I97b10a40d0b271b211bf4e6c09888d3cd568a3d0
Diffstat (limited to 'include/kvm_websocket.hpp')
0 files changed, 0 insertions, 0 deletions