[crypto,tls] explicitly cast function pointer

This commit is contained in:
akallabeth 2024-09-13 12:52:17 +02:00
parent f0a73e3e9c
commit 5f2ed9b8ce
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
1 changed files with 1 additions and 1 deletions

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;
}