Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/openvpn/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -2490,7 +2490,7 @@ link_socket_write_udp_posix_sendmsg(struct link_socket *sock, struct buffer *buf
{
struct in_pktinfo *pkti;
pkti = (struct in_pktinfo *)CMSG_DATA(cmsg);
pkti->ipi_ifindex = to->pi.in4.ipi_ifindex;
pkti->ipi_ifindex = 0;
pkti->ipi_spec_dst = to->pi.in4.ipi_spec_dst;
pkti->ipi_addr.s_addr = 0;
}
Expand Down Expand Up @@ -2524,7 +2524,7 @@ link_socket_write_udp_posix_sendmsg(struct link_socket *sock, struct buffer *buf
cmsg->cmsg_type = IPV6_PKTINFO;

pkti6 = (struct in6_pktinfo *)CMSG_DATA(cmsg);
pkti6->ipi6_ifindex = to->pi.in6.ipi6_ifindex;
pkti6->ipi6_ifindex = 0;
pkti6->ipi6_addr = to->pi.in6.ipi6_addr;
break;
}
Expand Down