summaryrefslogtreecommitdiffstats
path: root/crypto/asn1
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2009-01-01 18:30:51 +0000
committerBen Laurie <ben@openssl.org>2009-01-01 18:30:51 +0000
commit23b973e600550541fc942eee3030f124862dcc68 (patch)
treec2f5f5ed9989934f8eb85da15ecf97934c28d792 /crypto/asn1
parentb3b201b6f723506aa86d4850662763784df7eda0 (diff)
Calculate offset correctly. (Coverity ID 233)
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/a_set.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/a_set.c b/crypto/asn1/a_set.c
index 2405ce1ec2..2675476f18 100644
--- a/crypto/asn1/a_set.c
+++ b/crypto/asn1/a_set.c
@@ -218,7 +218,7 @@ STACK_OF(BLOCK) *d2i_ASN1_SET(STACK_OF(BLOCK) **a, const unsigned char **pp,
if ((s=d2i(NULL,&c.p,c.slen)) == NULL)
{
ASN1err(ASN1_F_D2I_ASN1_SET,ASN1_R_ERROR_PARSING_SET_ELEMENT);
- asn1_add_error(*pp,(int)(c.q- *pp));
+ asn1_add_error(*pp,(int)(c.p- *pp));
goto err;
}
if (!sk_BLOCK_push(ret,s)) goto err;