diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-01-13 01:03:56 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-01-16 11:49:54 +0100 |
commit | 91e8a3fb5cb4481697d372b98a274f3c233a7594 (patch) | |
tree | 9910ec6a7009afe33daad7c1e61a24ccd0af32c6 /crypto | |
parent | 2827145227a4ee352056e02b5908f19c7ca30074 (diff) |
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)
(cherry picked from commit 2f85736e9c66248528f132d46508f06a0bb8dd88)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/bio/bss_dgram.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c index 5195634fdf..62a76d0b4a 100644 --- a/crypto/bio/bss_dgram.c +++ b/crypto/bio/bss_dgram.c @@ -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 |