summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2006-06-09 14:01:07 +0000
committermaxim <maxim@FreeBSD.org>2006-06-09 14:01:07 +0000
commitf39caee822f1504e4b901a537c04cece488995a1 (patch)
treec4f26554b2433bd28e1df58dc9833f0f03de2bae /usr.sbin/ypserv
parent66b84ba9a1cdc8881262027aedf4f91c283ad79e (diff)
downloadFreeBSD-src-f39caee822f1504e4b901a537c04cece488995a1.zip
FreeBSD-src-f39caee822f1504e4b901a537c04cece488995a1.tar.gz
o Re-arrange parentheses and fix a conition logic for !do_dns case.
PR: bin/98625 MFC after: 1 month
Diffstat (limited to 'usr.sbin/ypserv')
-rw-r--r--usr.sbin/ypserv/yp_server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ypserv/yp_server.c b/usr.sbin/ypserv/yp_server.c
index c76a804..86c7d00 100644
--- a/usr.sbin/ypserv/yp_server.c
+++ b/usr.sbin/ypserv/yp_server.c
@@ -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"))) {
OpenPOWER on IntegriCloud