chiark / gitweb /
string_item_to_iaddr: Actually set port if !CONFIG_IPV6
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 23 Oct 2014 22:50:45 +0000 (23:50 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 23 Oct 2014 23:19:30 +0000 (00:19 +0100)
commit656df7e2c9b688150ebe991d79a64ac096bb5f8e
treee964f1ba496bcbb72f48561ead95d50644038214
parentf3d19c02998616d3677eff83bff97fd0d91ddbff
string_item_to_iaddr: Actually set port if !CONFIG_IPV6

This bug was introduced along with this function in bb839899 `Provide
string_item_to_iaddr', which simply forgot to set the port.

The practical implications are that the port number of a locally bound
socket would not be specified, if an address was supplied, but only in
builds without IPv6 support.  (This might result in the kernel picking
a port nmber; if authbind is in use it would probably cause authbind
to refuse.)

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