Fix bug 4786 "remove type confusion in getsockopt call in sock_connect_async_cb"
commit507ce6782cdb711b4c41d36c884b8d2ca48cb29a
authorOlaf Hering <olaf@aepfle.de>
Fri, 12 Apr 2024 14:38:43 +0000 (12 16:38 +0200)
committerRicardo Mones <ricardo@mones.org>
Fri, 12 Apr 2024 14:38:43 +0000 (12 16:38 +0200)
treed0159d28af43433f18cbf5abecc3368c74fd9b8a
parent8866fc11593241e97786a61ce129fe0c10403ee7
Fix bug 4786 "remove type confusion in getsockopt call in sock_connect_async_cb"

The function getsockopt expects a pointer to an area of memory whose
length has to specified in a variable of type socklen_t.

Adjust the type of optlen to be socklen_t as mandated by POSIX.

Adjust the type of optval pointer to what it really is, it will be
automatically converted to become a void * pointer.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
src/common/socket.c