Skip to content

Commit a3793f2

Browse files
committed
miniscript: add a missing dup key check bypass in Parse()
This was calling the wrong constructor.
1 parent d2b8c5e commit a3793f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/script/miniscript.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1727,7 +1727,7 @@ inline NodeRef<Key> Parse(Span<const char> in, const Ctx& ctx)
17271727
case ParseContext::AND_N: {
17281728
auto mid = std::move(constructed.back());
17291729
constructed.pop_back();
1730-
constructed.back() = MakeNodeRef<Key>(internal::NoDupCheck{}, Fragment::ANDOR, Vector(std::move(constructed.back()), std::move(mid), MakeNodeRef<Key>(ctx, Fragment::JUST_0)));
1730+
constructed.back() = MakeNodeRef<Key>(internal::NoDupCheck{}, Fragment::ANDOR, Vector(std::move(constructed.back()), std::move(mid), MakeNodeRef<Key>(internal::NoDupCheck{}, Fragment::JUST_0)));
17311731
break;
17321732
}
17331733
case ParseContext::AND_V: {

0 commit comments

Comments
 (0)