o Re-arrange parentheses and fix a conition logic for !do_dns case.

PR:		bin/98625
MFC after:	1 month
This commit is contained in:
Maxim Konovalov 2006-06-09 14:01:07 +00:00
parent f60de18e42
commit 8ef09875f0

View File

@ -164,9 +164,9 @@ ypproc_match_2_svc(ypreq_key *argp, struct svc_req *rqstp)
*/
#ifdef DB_CACHE
if (result.stat != YP_TRUE &&
if (do_dns && result.stat != YP_TRUE &&
(yp_testflag(argp->map, argp->domain, YP_INTERDOMAIN) ||
((strstr(argp->map, "hosts") || strstr(argp->map, "ipnodes")) && do_dns))) {
(strstr(argp->map, "hosts") || strstr(argp->map, "ipnodes")))) {
#else
if (do_dns && result.stat != YP_TRUE &&
(strstr(argp->map, "hosts") || strstr(argp->map, "ipnodes"))) {