PR: 2386
authorDr. Stephen Henson <steve@openssl.org>
Thu, 2 Dec 2010 18:02:14 +0000 (18:02 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 2 Dec 2010 18:02:14 +0000 (18:02 +0000)
Submitted by: Stefan Birrer <stefan.birrer@adnovum.ch>
Reviewed by: steve

Correct SKM_ASN1_SET_OF_d2i macro.

crypto/stack/safestack.h

index 891cb84a5147a807f57b301d9e5176536fdb85af..e46b8a408f626429051a8774e128241db4c48ec4 100644 (file)
@@ -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), \