--- crypto/openssl/crypto/asn1/asn1_lib.c 31 Jul 2002 02:54:42 -0000 +++ crypto/openssl/crypto/asn1/asn1_lib.c 2 Aug 2002 17:44:42 -0000 @@ -124,7 +124,7 @@ (int)(omax+ *pp)); #endif - if (*plength > (omax - (*pp - p))) + if (*plength > (omax - (p - *pp))) { ASN1err(ASN1_F_ASN1_GET_OBJECT,ASN1_R_TOO_LONG); /* Set this so that even if things are not long enough