summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/ndb/dn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/ndb/dn.c b/sys/src/cmd/ndb/dn.c
index 04ce387cf..e91183c37 100644
--- a/sys/src/cmd/ndb/dn.c
+++ b/sys/src/cmd/ndb/dn.c
@@ -840,7 +840,7 @@ rrattach(RR *rp, int auth)
rp->next = nil;
dp = rp->owner;
/* avoid any outside spoofing; leave keepers alone */
- if((cfg.cachedb && !rp->db && inmyarea(dp->name)) || dp->keep)
+ if(cfg.cachedb && !rp->db && (dp->keep || inmyarea(dp->name)))
rrfree(rp);
else
rrattach1(rp, auth);