add addrtostr check
addrtostr buffer overrun fix

When inet_ntop fails, don't overrun the str array.