getnameinfo: Avoid calling strnlen on uninitialized buffer
authorFlorian Weimer <fweimer@redhat.com>
Wed, 4 May 2016 12:35:23 +0000 (14:35 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 4 May 2016 12:48:01 +0000 (14:48 +0200)
commit1c3490d4b29fc5b3f30dd6b13082046aee94443d
tree615a33e7671aec7f908922800081793edcb06356
parentc9b0e6a432e827b61f12eb52c2aaeadc77b64461
getnameinfo: Avoid calling strnlen on uninitialized buffer

In the numeric AF_INET/AF_INET6 case, if inet_ntop fails
as the result of a short host buffer, we used to call strnlen
on the uninitialized host buffer.
ChangeLog
inet/getnameinfo.c