Fix compilation on Windows using icc
authorMatt Caswell <matt@openssl.org>
Mon, 29 Jan 2024 10:14:30 +0000 (10:14 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 31 Jan 2024 10:24:50 +0000 (10:24 +0000)
The parameter list for CRYPTO_DOWN_REF for the icc on windows build was
incorrect.

This issue was introduced by 99fd5b2b10

Fixes #23414

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23415)

include/internal/refcount.h

index 4c9ab266d3d3f6630386f00e6d6f63ffd7a8ffbe..d23bbb9eb9870eea8d868636e7f32f596737be67 100644 (file)
@@ -101,7 +101,7 @@ static __inline int CRYPTO_UP_REF(CRYPTO_REF_COUNT *refcnt, int *ret)
     return 1;
 }
 
-static __inline int CRYPTO_DOWN_REF(CRYPTO_REF_COUNT *val, int *refcnt)
+static __inline int CRYPTO_DOWN_REF(CRYPTO_REF_COUNT *refcnt, int *ret)
 {
     *ret = _InterlockedExchangeAdd((void *)&refcnt->val, -1) - 1;
     return 1;