aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-05-30 15:47:20 -0400
committerMarcoFalke <falke.marco@gmail.com>2018-05-30 15:46:06 -0400
commitfa36aa79655f7ec76043976f3c1c207afa9bfd6f (patch)
tree3338ddf2c9a37d04f8cdd2adc2a20ebd51492978 /src/script
parent61fcef0f89c4eb313b94a93880d7638b90aa0764 (diff)
wallet: Prevent segfault when sending to unspendable witness
Diffstat (limited to 'src/script')
-rw-r--r--src/script/standard.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/standard.cpp b/src/script/standard.cpp
index 53fcbe37de..d9269d6147 100644
--- a/src/script/standard.cpp
+++ b/src/script/standard.cpp
@@ -114,6 +114,7 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, std::vector<std::v
vSolutionsRet.push_back(std::move(witnessprogram));
return true;
}
+ typeRet = TX_NONSTANDARD;
return false;
}