summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2024-01-13 01:03:56 +0100
committerTomas Mraz <tomas@openssl.org>2024-01-16 11:49:32 +0100
commit2f85736e9c66248528f132d46508f06a0bb8dd88 (patch)
tree97df1db4a5799ab0b4fbae7c3830716100072ea3 /crypto
parent7698f80ab17190be8d6950d8836222a375245ed8 (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)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bio/bss_dgram.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c
index 4dd55ab337..26549305ac 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