From 9c10559976faa22f70ade27a745f0294266fe3c7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 24 Sep 2016 08:42:42 -0300 Subject: [PATCH] test --- iguana/iguana_sign.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/iguana_sign.c b/iguana/iguana_sign.c index 441a77650..3d940cd7d 100755 --- a/iguana/iguana_sign.c +++ b/iguana/iguana_sign.c @@ -371,7 +371,7 @@ int32_t iguana_parsevinobj(struct supernet_info *myinfo,struct iguana_info *coin len += iguana_rwnum(rwflag,&serialized[len],sizeof(vin->sequence),&vin->sequence); if ( spendstr != 0 ) { - if ( vin->spendlen == 0 ) + if ( vin->spendlen == 0 && vin->spendscript != 0 ) { vin->spendlen = (int32_t)strlen(spendstr) >> 1; decode_hex(vin->spendscript,vin->spendlen,spendstr);