aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. Stephen Henson <[email protected]>2006-01-31 19:38:06 +0100
committerDr. Stephen Henson <[email protected]>2006-01-31 19:38:06 +0100
commit0a2466a08df397baa7cd9a0f9ecd08c205802c97 (patch)
tree94b109da8f78ecec8221ae81b856104f3d570ef3
parentUpdate some scripts to use fips-1.0 (diff)
downloadopenssl-0a2466a08df397baa7cd9a0f9ecd08c205802c97.tar.gz
openssl-0a2466a08df397baa7cd9a0f9ecd08c205802c97.zip
Fix from head.
-rw-r--r--crypto/asn1/tasn_dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/tasn_dec.c b/crypto/asn1/tasn_dec.c
index d9aafacbdfc..c22501fc63b 100644
--- a/crypto/asn1/tasn_dec.c
+++ b/crypto/asn1/tasn_dec.c
@@ -903,7 +903,7 @@ static int asn1_collect(BUF_MEM *buf, unsigned char **in, long len, char inf, in
return 0;
#endif
} else {
- if(!collect_data(buf, &p, plen)) return 0;
+ if(plen && !collect_data(buf, &p, plen)) return 0;
}
len -= p - q;
}