diff options
Diffstat (limited to 'crypto/asn1')
-rw-r--r-- | crypto/asn1/asn_pack.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/asn1/asn_pack.c b/crypto/asn1/asn_pack.c index e04d327e41..6e0dd95622 100644 --- a/crypto/asn1/asn_pack.c +++ b/crypto/asn1/asn_pack.c @@ -114,7 +114,9 @@ char *ASN1_unpack_string (oct, d2i) ASN1_STRING *oct; char *(*d2i)(); { - unsigned char *p, *ret; + unsigned char *p; + char *ret; + p = oct->data; if(!(ret = d2i(NULL, &p, oct->length))) ASN1err(ASN1_F_ASN1_UNPACK_STRING,ASN1_R_DECODE_ERROR); |