mdns: check return value of inet_pton