summaryrefslogtreecommitdiff
path: root/appl/cmd/ndb/dns.b
diff options
context:
space:
mode:
authorcharles forsyth <charles.forsyth@gmail.com>2014-05-01 12:08:59 +0100
committercharles forsyth <charles.forsyth@gmail.com>2014-05-01 12:08:59 +0100
commit7e479951464b9bb71e87aeef19d908e9fb9be494 (patch)
tree7968ae368c80e4840742922be86b0094e1135906 /appl/cmd/ndb/dns.b
parent65d763c4734e960a86d6deb36d29630edbc10935 (diff)
20140501-1208
Diffstat (limited to 'appl/cmd/ndb/dns.b')
-rw-r--r--appl/cmd/ndb/dns.b4
1 files changed, 3 insertions, 1 deletions
diff --git a/appl/cmd/ndb/dns.b b/appl/cmd/ndb/dns.b
index 0cd7957c..2fb7ab35 100644
--- a/appl/cmd/ndb/dns.b
+++ b/appl/cmd/ndb/dns.b
@@ -1141,7 +1141,9 @@ Step1:
ttl += now;
else
ttl = now+10*60;
- cachec <-= (ref RR.Error(label, attr, Cin, ttl, auth, "resource does not exist")::soa::nil, auth);
+ if(soa != nil)
+ l := soa :: nil;
+ cachec <-= (ref RR.Error(label, attr, Cin, ttl, auth, "resource does not exist")::l, auth);
return (nil, "resource does not exist");
}
if(isdelegation(dm)){