From fa36aa79655f7ec76043976f3c1c207afa9bfd6f Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Wed, 30 May 2018 15:47:20 -0400 Subject: [PATCH] wallet: Prevent segfault when sending to unspendable witness --- src/script/standard.cpp | 1 + src/test/script_standard_tests.cpp | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/src/script/standard.cpp b/src/script/standard.cpp index 53fcbe37de8..d9269d6147a 100644 --- a/src/script/standard.cpp +++ b/src/script/standard.cpp @@ -114,6 +114,7 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, std::vector