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)