diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2002-08-02 21:41:01 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2002-08-02 21:41:01 +0000 |
commit | 39a63225b95874e203981980a107c33331dd553b (patch) | |
tree | 2c24f6c0c375599386d7656ed70409f008336623 | |
parent | 046a5dbd3133ba2163bccdb6344fca1774ac298d (diff) |
typo; from openssl cvs
-rw-r--r-- | lib/libcrypto/asn1/asn1_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/asn1/asn1_lib.c b/lib/libcrypto/asn1/asn1_lib.c index fd8e77044ee..46731b2438b 100644 --- a/lib/libcrypto/asn1/asn1_lib.c +++ b/lib/libcrypto/asn1/asn1_lib.c @@ -123,7 +123,7 @@ int ASN1_get_object(unsigned char **pp, long *plength, int *ptag, int *pclass, (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 |