diff options
author | Gert Doering <gert@greenie.muc.de> | 2013-05-30 13:31:24 +0200 |
---|---|---|
committer | Gert Doering <gert@greenie.muc.de> | 2013-05-30 20:50:28 +0200 |
commit | 8c431f960357d776cfd0961192214ad1b0942bfb (patch) | |
tree | 8343628f3ee48f6adfba9ab5d368a6ec57198bbd /src/openvpn/common.h | |
parent | a8be73799be163909a3b212656dedf03494f0792 (diff) | |
download | openvpn-8c431f960357d776cfd0961192214ad1b0942bfb.tar.gz openvpn-8c431f960357d776cfd0961192214ad1b0942bfb.tar.xz openvpn-8c431f960357d776cfd0961192214ad1b0942bfb.zip |
Fix problem with UDP tunneling due to mishandled pktinfo structures.
In link_socket_write_udp_posix_sendmsg(), pktinfo structures for ipv4 and
ipv6 are going out of scope before actually calling sendmsg(), so depending
on compiler optimization, garbage is passed to sendmsg() - fix by using
"union openvpn_pktinfo" and having that in scope all the time.
Problem reported and patch provided by "danta" in trac#297
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Arne Schwabe <arne@rfc2549.org>
URL: https://community.openvpn.net/openvpn/ticket/297
Message-ID: <20130530184427.GP20843@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/7629
Diffstat (limited to 'src/openvpn/common.h')
0 files changed, 0 insertions, 0 deletions