You should check the return value of `inet_ntop`.