[crypto,tls] explicitly cast function pointer

This commit is contained in:
akallabeth
2024-09-13 12:52:17 +02:00
parent f0a73e3e9c
commit 5f2ed9b8ce

View File

@@ -315,7 +315,7 @@ static long bio_rdp_tls_ctrl(BIO* bio, int cmd, long num, void* ptr)
*
* This, of course, is something compilers warn about. So silence it by casting */
{
void* vptr = (void*)SSL_get_info_callback(tls->ssl);
void* vptr = WINPR_FUNC_PTR_CAST(SSL_get_info_callback(tls->ssl), void*);
*((void**)ptr) = vptr;
status = 1;
}