From 91e1ff77a087c9d1b3781c8039873e80ff3e8059 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 2 Dec 2010 17:59:36 +0000 Subject: [PATCH] PR: 2386 Submitted by: Stefan Birrer Reviewed by: steve Correct SKM_ASN1_SET_OF_d2i macro. --- crypto/stack/safestack.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/stack/safestack.h b/crypto/stack/safestack.h index da59178c16..a498f1b104 100644 --- a/crypto/stack/safestack.h +++ b/crypto/stack/safestack.h @@ -179,7 +179,8 @@ DECLARE_SPECIAL_STACK_OF(OPENSSL_BLOCK, void) sk_is_sorted(CHECKED_STACK_OF(type, st)) #define SKM_ASN1_SET_OF_d2i(type, st, pp, length, d2i_func, free_func, ex_tag, ex_class) \ - (STACK_OF(type) *)d2i_ASN1_SET((STACK_OF(OPENSSL_BLOCK) **)CHECKED_STACK_OF(type, st), \ + (STACK_OF(type) *)d2i_ASN1_SET( \ + (STACK_OF(OPENSSL_BLOCK) **)CHECKED_PTR_OF(STACK_OF(type)*, st), \ pp, length, \ CHECKED_D2I_OF(type, d2i_func), \ CHECKED_SK_FREE_FUNC(type, free_func), \ -- 2.25.1