Fix error check

This commit is contained in:
jl777
2019-07-07 04:07:27 -11:00
parent 899e223796
commit a5f0729fc1

View File

@@ -439,7 +439,7 @@ void komodo_nSPVreq(CNode *pfrom,std::vector<uint8_t> request) // received a req
if ( timestamp > pfrom->prevtimes[ind] ) if ( timestamp > pfrom->prevtimes[ind] )
{ {
struct NSPV_txproof P; uint256 txid; int32_t height,vout; 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),&height);
iguana_rwnum(0,&request[1+sizeof(height)],sizeof(vout),&vout); iguana_rwnum(0,&request[1+sizeof(height)],sizeof(vout),&vout);