--- crypto/asn1/a_d2i_fp.c.orig	1999-04-23 18:08:07.000000000 -0400
+++ crypto/asn1/a_d2i_fp.c	2002-05-03 18:42:41.000000000 -0400
@@ -170,7 +170,7 @@
 					goto err;
 					}
 				i=BIO_read(in,&(b->data[len]),want);
-				if (i <= 0)
+				if (i < want)
 					{
 					ASN1err(ASN1_F_ASN1_D2I_BIO,ASN1_R_NOT_ENOUGH_DATA);
 					goto err;
