diff options
author | markus <> | 2002-08-02 21:41:00 +0000 |
---|---|---|
committer | markus <> | 2002-08-02 21:41:00 +0000 |
commit | f2b57ef6b13a5639a18c96ff92368c26081c05e9 (patch) | |
tree | a8fa9acbfb66654252274250a6c2e5883b4624ea /src/lib | |
parent | f5498364761a8d35366c6a7c7b4b9435539a308f (diff) | |
download | openbsd-f2b57ef6b13a5639a18c96ff92368c26081c05e9.tar.gz openbsd-f2b57ef6b13a5639a18c96ff92368c26081c05e9.tar.bz2 openbsd-f2b57ef6b13a5639a18c96ff92368c26081c05e9.zip |
typo; from openssl cvs
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/asn1/asn1_lib.c | 2 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/asn1/asn1_lib.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_lib.c b/src/lib/libcrypto/asn1/asn1_lib.c index fd8e77044e..46731b2438 100644 --- a/src/lib/libcrypto/asn1/asn1_lib.c +++ b/src/lib/libcrypto/asn1/asn1_lib.c | |||
@@ -123,7 +123,7 @@ int ASN1_get_object(unsigned char **pp, long *plength, int *ptag, int *pclass, | |||
123 | (int)(omax+ *pp)); | 123 | (int)(omax+ *pp)); |
124 | 124 | ||
125 | #endif | 125 | #endif |
126 | if (*plength > (omax - (*pp - p))) | 126 | if (*plength > (omax - (p - *pp))) |
127 | { | 127 | { |
128 | ASN1err(ASN1_F_ASN1_GET_OBJECT,ASN1_R_TOO_LONG); | 128 | ASN1err(ASN1_F_ASN1_GET_OBJECT,ASN1_R_TOO_LONG); |
129 | /* Set this so that even if things are not long enough | 129 | /* Set this so that even if things are not long enough |
diff --git a/src/lib/libssl/src/crypto/asn1/asn1_lib.c b/src/lib/libssl/src/crypto/asn1/asn1_lib.c index fd8e77044e..46731b2438 100644 --- a/src/lib/libssl/src/crypto/asn1/asn1_lib.c +++ b/src/lib/libssl/src/crypto/asn1/asn1_lib.c | |||
@@ -123,7 +123,7 @@ int ASN1_get_object(unsigned char **pp, long *plength, int *ptag, int *pclass, | |||
123 | (int)(omax+ *pp)); | 123 | (int)(omax+ *pp)); |
124 | 124 | ||
125 | #endif | 125 | #endif |
126 | if (*plength > (omax - (*pp - p))) | 126 | if (*plength > (omax - (p - *pp))) |
127 | { | 127 | { |
128 | ASN1err(ASN1_F_ASN1_GET_OBJECT,ASN1_R_TOO_LONG); | 128 | ASN1err(ASN1_F_ASN1_GET_OBJECT,ASN1_R_TOO_LONG); |
129 | /* Set this so that even if things are not long enough | 129 | /* Set this so that even if things are not long enough |