diff options
author | Andrew Chow <github@achow101.com> | 2022-11-28 18:27:27 -0500 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-12-01 10:21:00 +0000 |
commit | 7a97a56ffb22fbf8ccb143a8a7da77e8c7e77069 (patch) | |
tree | f13ea9e7b1eb1f9c0d02c11c0273952eac799956 /CONTRIBUTING.md | |
parent | f668a3a85933512e7efc369b5b2922d44b4bad82 (diff) |
wallet: Avoid null pointer deref when cleaning up migratewallet
If migratewallet fails, we do a cleanup which removes the watchonly and
solvables wallets if they were created. However, if they were not, their
pointers are nullptr and we don't check for that, which causes a
segfault during the cleanup. So check that they aren't nullptr before
cleaning them up.
Github-Pull: #26594
Rebased-From: 86ef7b3c7be84e4183098f448c77ecc9ea7367ab
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions