David Howells 01fd79e6de afs: Fix address list parsing
The parsing of port specifiers in the address list obtained from the DNS
resolution upcall doesn't work as in4_pton() and in6_pton() will fail on
encountering an unexpected delimiter (in this case, the '+' marking the
port number).  However, in*_pton() can't be given multiple specifiers.

Fix this by finding the delimiter in advance and not relying on in*_pton()
to find the end of the address for us.

Fixes: 8b2a464ced77 ("afs: Add an address list concept")
Signed-off-by: David Howells <dhowells@redhat.com>
2018-05-14 13:17:35 +01:00
..
2018-05-14 13:17:35 +01:00
2008-04-29 08:06:26 -07:00
2018-04-09 21:53:59 +01:00
2018-04-09 21:54:48 +01:00
2018-05-14 13:17:35 +01:00
2018-04-09 21:54:48 +01:00
2018-05-14 13:17:35 +01:00
2018-05-14 13:17:35 +01:00
2018-02-06 14:43:37 +00:00
2018-04-09 21:12:31 +01:00
2018-04-09 21:54:48 +01:00
2018-02-06 14:36:54 +00:00
2018-04-20 09:59:33 -07:00
2018-05-14 13:17:35 +01:00
2018-04-09 21:54:48 +01:00