From 5582e94009c5499dfd0c3f9357d4f90b44b7d041 Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Thu, 8 Jan 2026 14:30:31 -0600 Subject: [PATCH] Minor fix --- src/modules/Native/StoreForwardPlusPlus.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/Native/StoreForwardPlusPlus.cpp b/src/modules/Native/StoreForwardPlusPlus.cpp index fff362a80..bd7e808e1 100644 --- a/src/modules/Native/StoreForwardPlusPlus.cpp +++ b/src/modules/Native/StoreForwardPlusPlus.cpp @@ -1174,7 +1174,8 @@ bool StoreForwardPlusPlusModule::addToChain(link_object &lo) commit_hash.update(lo.message_hash, SFPP_HASH_SIZE); commit_hash.finalize(tmp_commit_hash, SFPP_HASH_SIZE); - if (lo.commit_hash_len >= SFPP_SHORT_HASH_SIZE && memcmp(tmp_commit_hash, lo.commit_hash, lo.commit_hash_len) != 0) { + if (chain_end.validObject && lo.commit_hash_len >= SFPP_SHORT_HASH_SIZE && + memcmp(tmp_commit_hash, lo.commit_hash, lo.commit_hash_len) != 0) { LOG_WARN("StoreForwardpp Commit hash mismatch"); logLinkObject(lo);