mirror of https://github.com/openssl/openssl.git
Added check for __QNX__ define when using in_pktinfo.ipi_spec_dst
CLA: trivial
Reviewed-by: Hugo Landau <hlandau@devever.net>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24361)
(cherry picked from commit 445017152b)
This commit is contained in:
parent
27fd9ed3e3
commit
f5ded7f405
|
|
@ -1192,7 +1192,7 @@ static int pack_local(BIO *b, MSGHDR_TYPE *mh, const BIO_ADDR *local) {
|
||||||
cmsg->cmsg_type = IP_PKTINFO;
|
cmsg->cmsg_type = IP_PKTINFO;
|
||||||
|
|
||||||
info = (struct in_pktinfo *)BIO_CMSG_DATA(cmsg);
|
info = (struct in_pktinfo *)BIO_CMSG_DATA(cmsg);
|
||||||
# if !defined(OPENSSL_SYS_WINDOWS) && !defined(OPENSSL_SYS_CYGWIN) && !defined(__FreeBSD__)
|
# if !defined(OPENSSL_SYS_WINDOWS) && !defined(OPENSSL_SYS_CYGWIN) && !defined(__FreeBSD__) && !defined(__QNX__)
|
||||||
info->ipi_spec_dst = local->s_in.sin_addr;
|
info->ipi_spec_dst = local->s_in.sin_addr;
|
||||||
# endif
|
# endif
|
||||||
info->ipi_addr.s_addr = 0;
|
info->ipi_addr.s_addr = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue