aboutsummaryrefslogtreecommitdiff
path: root/src/script/script_error.cpp
diff options
context:
space:
mode:
authorTim Ruffing <[email protected]>2018-05-03 17:45:51 +0200
committerTim Ruffing <[email protected]>2018-05-03 19:15:11 +0200
commit264c64380978d7b0bd3ecb56a861eb004cc58b01 (patch)
tree03438990ead1c785bec2a2775ae424d1d3c07441 /src/script/script_error.cpp
parentMerge #13133: Remove python2 from configure.ac (diff)
downloaddiscoin-264c64380978d7b0bd3ecb56a861eb004cc58b01.tar.xz
discoin-264c64380978d7b0bd3ecb56a861eb004cc58b01.zip
wallet: Reset BerkeleyDB handle after connection fails
According to the BerkeleyDB docs, the DbEnv handle may not be accessed after close() has been called. This change ensures that we create a new handle after close() is called. This avoids a segfault when the first connection attempt fails and then a second connection attempt tries to call open() on the already closed DbEnv handle.
Diffstat (limited to 'src/script/script_error.cpp')
0 files changed, 0 insertions, 0 deletions