]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix problem with UDP tunneling due to mishandled pktinfo structures.
authorGert Doering <gert@greenie.muc.de>
Thu, 30 May 2013 11:31:24 +0000 (13:31 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 30 May 2013 18:50:28 +0000 (20:50 +0200)
commit8c431f960357d776cfd0961192214ad1b0942bfb
tree8343628f3ee48f6adfba9ab5d368a6ec57198bbd
parenta8be73799be163909a3b212656dedf03494f0792
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
src/openvpn/socket.c