]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix an infinite loop in setnetgrent(3) with NIS netgroups.
authormarkj <markj@FreeBSD.org>
Thu, 9 Jun 2016 01:11:48 +0000 (01:11 +0000)
committermarkj <markj@FreeBSD.org>
Thu, 9 Jun 2016 01:11:48 +0000 (01:11 +0000)
commita7caa41829f894b5b21f9a9483f17d3f1c6a3cf9
tree03f5ac9c166a2a53d55f6387faea6dfd59854bba
parente07517fb7d4e88e7eb823cc8d48914627cd13a71
Fix an infinite loop in setnetgrent(3) with NIS netgroups.

Handle an empty result from yp_match() by returning NULL, which is
consistent with the handling of an empty netgroup in /etc/netgroup.
setnetgrent(3) has no return value, so there is no particular need to
distinguish this case from an error.

PR: 26486
MFC after: 2 weeks
lib/libc/gen/getnetgrent.c