]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r291073
authoraraujo <araujo@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 21 Dec 2015 14:32:29 +0000 (14:32 +0000)
committeraraujo <araujo@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 21 Dec 2015 14:32:29 +0000 (14:32 +0000)
commiteda089ded506a2aff1fab6ab6ce1730a34f0eee3
tree18b310d289410287d9cc6899cc2ac3d9a3eb491f
parent3ac91e23973fa9e02fe03c012e23424133096988
MFC: r291073

If a NIS server has long entries on its database that is bigger than
1024 specified on YPMAXRECORD the ypmatch can get in an infinite retry
loop when is requesting the information from the NIS server.

The ypmatch(1) will return an error until the command receives an
kill(1).

To avoid this problem, we check the MAX_RETRIES that is by default set
to 20 and avoid get in infinet loop at the client side.

NOTE: FreeBSD nis(8) server doesn't present this issue.

Submitted by:   Ravi Pokala <rpokala at panasas.com>,
                Lakshmi N. Sundararajan <lakshmi.n at msystechnologies.com>,
                Lewis, Fred <flewis at panasas.com>,
                Pushkar Kothavade <pushkar.kothavade at msystechnologies.com>

git-svn-id: svn://svn.freebsd.org/base/stable/10@292547 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/yp/yplib.c