]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix crypto/dso/dso_vms.c
authorRichard Levitte <levitte@openssl.org>
Fri, 7 Oct 2022 08:23:17 +0000 (10:23 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 7 Oct 2022 08:23:17 +0000 (10:23 +0200)
In the "Stop raising ERR_R_MALLOC_FAILURE in most places" commit, some
fixes of this file weren't done quite right, leading to a symbol being
undeclared depending on building circumstances.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/19360)

crypto/dso/dso_vms.c

index 1afa222dbc933faaecd5dcbace07ee2c4e4cc3a3..236b1924d401d0ddce4fbde9c841700e618092de 100644 (file)
@@ -106,9 +106,12 @@ static int vms_load(DSO *dso)
 #   pragma pointer_size save
 #   pragma pointer_size 32
 #  endif                        /* __INITIAL_POINTER_SIZE == 64 */
+# endif                         /* __INITIAL_POINTER_SIZE && defined
+                                 * _ANSI_C_SOURCE */
 
     DSO_VMS_INTERNAL *p = NULL;
 
+# if __INITIAL_POINTER_SIZE && defined _ANSI_C_SOURCE
 #  if __INITIAL_POINTER_SIZE == 64
 #   pragma pointer_size restore
 #  endif                        /* __INITIAL_POINTER_SIZE == 64 */