udp: Insist on only one successful default socket setup
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 25 Oct 2014 15:56:50 +0000 (16:56 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 25 Oct 2014 17:13:43 +0000 (18:13 +0100)
commitb3877445fa32f46d70057212cb38347ae1bf4955
tree63e4525a090c940adac80934008b6fe27faeacdd
parent93910f6a123c1a3972978c7a9134a42f38f1ac74
udp: Insist on only one successful default socket setup

If we default the addresses to use, we only insist that at least one
of them can be successfully set up.

(This is particularly significant when upgrading an existing secnet
installation to the new secnet, with IPv6 support, but on a host with
no IPv6, and no address configured in the config file.  Without this
patch, secnet would fail to start up because it would try, and fail,
to bind the IPv6 address.)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
udp.c