Fix use after free in transaction_tests.

This commit is contained in:
Sean Bowe 2017-02-09 14:34:53 -07:00
parent 253c610783
commit 05ec7887f1
1 changed files with 1 additions and 0 deletions

View File

@ -475,6 +475,7 @@ BOOST_AUTO_TEST_CASE(test_simple_joinsplit_invalidity)
jsdesc->nullifiers[1] = GetRandHash();
newTx.vjoinsplit.push_back(JSDescription());
jsdesc = &newTx.vjoinsplit[0];
JSDescription *jsdesc2 = &newTx.vjoinsplit[1];
jsdesc2->nullifiers[0] = GetRandHash();