From a5f0729fc1d95ca4931b0f58dacc2d8f58e9a65f Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 7 Jul 2019 04:07:27 -1100 Subject: [PATCH] Fix error check --- src/komodo_nSPV_fullnode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_nSPV_fullnode.h b/src/komodo_nSPV_fullnode.h index ba73a2127..c4b13f173 100644 --- a/src/komodo_nSPV_fullnode.h +++ b/src/komodo_nSPV_fullnode.h @@ -439,7 +439,7 @@ void komodo_nSPVreq(CNode *pfrom,std::vector request) // received a req if ( timestamp > pfrom->prevtimes[ind] ) { struct NSPV_txproof P; uint256 txid; int32_t height,vout; - if ( len == 1+sizeof(txid)+sizeof(height) ) + if ( len == 1+sizeof(txid)+sizeof(height)+sizeof(vout) ) { iguana_rwnum(0,&request[1],sizeof(height),&height); iguana_rwnum(0,&request[1+sizeof(height)],sizeof(vout),&vout);