mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
hurd: Fix dgram_sendmmsg
GNU/Hurd does not have IP_PKTINFO yet, thus SUPPORT_LOCAL_ADDR is undef, data->local_addr_enabled never set to 1, and thus the M_METHOD_RECVMSG method would end up raising BIO_R_LOCAL_ADDR_NOT_AVAILABLE immediately. Fixes #22872 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Hugo Landau <hlandau@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23293)
This commit is contained in:
parent
7698f80ab1
commit
2f85736e9c
@ -61,6 +61,11 @@
|
||||
# define NO_RECVMMSG
|
||||
# endif
|
||||
# endif
|
||||
# if defined(__GNU__)
|
||||
/* GNU/Hurd does not have IP_PKTINFO yet */
|
||||
#undef NO_RECVMSG
|
||||
#define NO_RECVMSG
|
||||
# endif
|
||||
# if !defined(M_METHOD)
|
||||
# if defined(OPENSSL_SYS_WINDOWS) && defined(BIO_HAVE_WSAMSG) && !defined(NO_WSARECVMSG)
|
||||
# define M_METHOD M_METHOD_WSARECVMSG
|
||||
|
Loading…
Reference in New Issue
Block a user