ip: fix format_ip6_address_and_mask() bug