Prevent mem leaks in the (unlikely) event that getaddrinfo returns
authordtucker <dtucker@openbsd.org>
Fri, 22 Oct 2021 10:51:57 +0000 (10:51 +0000)
committerdtucker <dtucker@openbsd.org>
Fri, 22 Oct 2021 10:51:57 +0000 (10:51 +0000)
commit2ad7106c41e8d9c0d4a0e55d068d5f096c0a750d
tree66088d4d6c1aee6f010a9aebc7460a02bd6ad2fc
parentc2815f773d130984f818eb066cc5fa549cfb9e55
Prevent mem leaks in the (unlikely) event that getaddrinfo returns
no addresses.  ALso, remove an unneeded NULL check in addr_ntop.
From khaleesicodes via github PR#281, ok deraadt@
usr.bin/ssh/addr.c