]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix info.af == AF_UNSPEC case for server with --mtu-disc
authorGert Doering <gert@greenie.muc.de>
Mon, 23 Nov 2015 19:47:42 +0000 (20:47 +0100)
committerGert Doering <gert@greenie.muc.de>
Mon, 23 Nov 2015 19:47:42 +0000 (20:47 +0100)
commited5d0fe5097a26206a6a7d4463622461a0987655
tree121c5789557c13860f4fe9f57fc673ed177b717f
parent9d3b7cec5270b2aebf62e80ccaa564aab93fcb37
Fix info.af == AF_UNSPEC case for server with --mtu-disc

Commit 2bed089d31a12c2 introduced "AF_UNSPEC" sockets when we do not know
the actual address family yet - for the "bind local" case, getaddrinfo()
will tell us what to do, but that information never made it into
sock->info.af - so, make it.  Otherwise, trying to call --mtu-disc
on an OpenVPN server will cause a M_FATAL error in set_mtu_discovery())

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Christian Pellegrin <chripell@google.com>
Message-ID: <20151121200637.GD24952@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/10547
src/openvpn/socket.c