diff options
author | James Feist <james.feist@linux.intel.com> | 2020-02-06 16:25:27 -0800 |
---|---|---|
committer | James Feist <james.feist@linux.intel.com> | 2020-02-10 20:23:16 +0000 |
commit | 6ee7f774bf6393d48c7215e02d6dbf00322bc9f5 (patch) | |
tree | 8cc454e568e5533033c92a846cd99ecd1e3488d7 /.clang-format | |
parent | 3c5a376e005d97f5d586c5aa163267eb3b0381aa (diff) | |
download | bmcweb-6ee7f774bf6393d48c7215e02d6dbf00322bc9f5.tar.gz bmcweb-6ee7f774bf6393d48c7215e02d6dbf00322bc9f5.zip |
PID: Don't attempt to delete unknown objects
This puts a block in to return early if we are asked
to delete something we can't find on D-Bus. This code
path was creating a segfault, but theres no reason to
continue after we can't find an object we are asked to
delete, so we can just avoid it. Also clean up the end
iterator dereference so it doesn't happen in any other
path.
Tested: Segfault goes away
Change-Id: I33622e5e8ab09fba0681e4f86f4a7068f6ef0be7
Signed-off-by: James Feist <james.feist@linux.intel.com>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions