• David Howells's avatar
    afs: Fix address list parsing · 01fd79e6
    David Howells authored
    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: 8b2a464c ("afs: Add an address list concept")
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    01fd79e6
addr_list.c 8.63 KB