Skip to content

Commit

Permalink
BIO_listen: disable setting ipv6_v6only on OpenBSD as it is a read on…
Browse files Browse the repository at this point in the history
…ly data and true

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from openssl#15015)
  • Loading branch information
devnexen authored and kaduk committed May 9, 2021
1 parent 1064616 commit f7f0632
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crypto/bio/b_sock2.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ int BIO_listen(int sock, const BIO_ADDR *addr, int options)
}
}

# ifdef IPV6_V6ONLY
/* On OpenBSD it is always ipv6 only with ipv6 sockets thus read-only */
# if defined(IPV6_V6ONLY) && !defined(__OpenBSD__)
if (BIO_ADDR_family(addr) == AF_INET6) {
/*
* Note: Windows default of IPV6_V6ONLY is ON, and Linux is OFF.
Expand Down

0 comments on commit f7f0632

Please sign in to comment.