From 00bc37d8a45ec578415f2d1463cf0f054bdd1c82 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 9 Jan 2022 15:50:23 +0100 Subject: [PATCH] Revert "[ssl] Test commit. Now there is no warning" This reverts commit 2cf17a731fb1b5165648fcacd05615aee173dead. --- src/network/ssl/ssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/ssl/ssl.c b/src/network/ssl/ssl.c index 22427fff..4e26bef3 100644 --- a/src/network/ssl/ssl.c +++ b/src/network/ssl/ssl.c @@ -55,7 +55,7 @@ int socket_SSL_ex_data_idx = -1; * either. */ static int socket_SSL_ex_data_dup(CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from, - void **from_d, int idx, long argl, void *argp) + void *from_d, int idx, long argl, void *argp) { /* The documentation of from_d in RSA_get_ex_new_index(3) * is a bit unclear. The caller does something like: @@ -66,7 +66,7 @@ socket_SSL_ex_data_dup(CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from, * * i.e., from_d always points to a pointer, even though * it is just a void * in the prototype. */ - struct socket *socket = *from_d; + struct socket *socket = *(void **) from_d; assert(idx == socket_SSL_ex_data_idx); if_assert_failed return 0;