]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r299502:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Jun 2016 15:42:17 +0000 (15:42 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Jun 2016 15:42:17 +0000 (15:42 +0000)
commit5605c0da65e28459fa5f690bc3fa2d0ecf84e39b
treeb004c87d1a06cd5aef0ce4ae24205a356cfb518a
parentdb43eabad05b799112b8562b687fab72ab8d8a87
MFC r299502:
r299502 (by cem):

nss/gethostby_test: fix broken vector iteration of gethostbyaddr h_aliases

h_aliases is a NULL-terminated rather than fixed-length array.  nitems() is not
a valid way to determine its end; instead, check for NULL.

CID: 1346578

git-svn-id: svn://svn.freebsd.org/base/stable/10@301798 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/tests/nss/gethostby_test.c