miniupnpd/getifaddr.c: clean up and fix getifaddr_in6()