From 0a6708c67331c730810ffc023067d09c3c4d4841 Mon Sep 17 00:00:00 2001 From: Richard Holland Date: Wed, 21 Dec 2022 12:31:39 +0000 Subject: [PATCH] allow small data as int64 again on state api --- src/ripple/app/hook/impl/applyHook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple/app/hook/impl/applyHook.cpp b/src/ripple/app/hook/impl/applyHook.cpp index 6888b96e0..811e2817d 100644 --- a/src/ripple/app/hook/impl/applyHook.cpp +++ b/src/ripple/app/hook/impl/applyHook.cpp @@ -1671,7 +1671,7 @@ DEFINE_HOOK_FUNCTION( if (kread_len < 1) return TOO_SMALL; - if (write_len < 1) + if (write_len < 1 && write_ptr != 0) return TOO_SMALL; if (!is_foreign && nread_len == 0)