ref: 5fbf53b467fa109dcec963f3404f8dc77199e82f
parent: 921b75a9095a20bbc44d97b251e659c3334df18b
parent: ed888f3ee9ba746e76fe9aed0e2e6c1189ac45dd
author: cinap_lenrek <[email protected]>
date: Thu Oct 11 14:34:14 EDT 2018
merge
--- a/sys/src/cmd/ndb/dnnotify.c
+++ b/sys/src/cmd/ndb/dnnotify.c
@@ -58,8 +58,8 @@
nips++;
return nips;
}
- list = dnresolve(name, Cin, Ta, req, nil, 0, 1, 1, nil);
- rrcat(&list, dnresolve(name, Cin, Taaaa, req, nil, 0, 1, 1, nil));
+ list = dnresolve(name, Cin, Ta, req, nil, 0, Recurse, 0, nil);
+ rrcat(&list, dnresolve(name, Cin, Taaaa, req, nil, 0, Recurse, 0, nil));
rp = list = randomize(list);
while(rp != nil && nips < maxips){
uchar *ip = ips + nips*IPaddrlen;
--- a/sys/src/cmd/ndb/dnresolve.c
+++ b/sys/src/cmd/ndb/dnresolve.c
@@ -145,7 +145,7 @@
}
if(drp != nil)
rrfreelist(drp);
- procsetname(procname);
+ procsetname("%s", procname);
free(procname);
return rp;
}
@@ -188,7 +188,7 @@
if(rp == nil && status != nil && dp->respcode != Rok)
*status = dp->respcode;
}
- procsetname(procname);
+ procsetname("%s", procname);
free(procname);
return randomize(rp);
}
--- a/sys/src/cmd/ndb/dns.c
+++ b/sys/src/cmd/ndb/dns.c
@@ -771,11 +771,11 @@
/*
* dnsdebug calls
- * rr = dnresolve(buf, Cin, type, &req, 0, 0, Recurse, rooted, 0);
+ * rr = dnresolve(buf, Cin, type, &req, nil, 0, Recurse, rooted, nil);
* which generates a UDP query, which eventually calls
* dnserver(&reqmsg, &repmsg, &req, buf, rcode);
* which calls
- * rp = dnresolve(name, Cin, type, req, &mp->an, 0, recurse, 1, 0);
+ * rp = dnresolve(name, Cin, type, req, &mp->an, 0, recurse, 1, nil);
*
* but here we just call dnresolve directly.
*/
@@ -787,7 +787,7 @@
RR *rp, *neg;
status = Rok;
- rp = dnresolve(p, Cin, mf->type, req, 0, 0, Recurse, rooted, &status);
+ rp = dnresolve(p, Cin, mf->type, req, nil, 0, Recurse, rooted, &status);
neg = rrremneg(&rp);
if(neg){
--- a/sys/src/cmd/ndb/dnsdebug.c
+++ b/sys/src/cmd/ndb/dnsdebug.c
@@ -349,10 +349,10 @@
memset(&req, 0, sizeof req);
req.isslave = 1;
req.aborttime = NS2MS(nowns) + Maxreqtm;
- *l = dnresolve(rp->host->name, Cin, Ta, &req, 0, 0, Recurse, 0, 0);
+ *l = dnresolve(rp->host->name, Cin, Ta, &req, nil, 0, Recurse, 0, nil);
if(*l == nil)
*l = dnresolve(rp->host->name, Cin, Taaaa, &req,
- 0, 0, Recurse, 0, 0);
+ nil, 0, Recurse, 0, nil);
while(*l != nil)
l = &(*l)->next;
}
@@ -436,7 +436,7 @@
getactivity(&req, 0);
req.isslave = 1;
req.aborttime = NS2MS(nowns) + Maxreqtm;
- rr = dnresolve(buf, Cin, type, &req, 0, 0, Recurse, rooted, 0);
+ rr = dnresolve(buf, Cin, type, &req, nil, 0, Recurse, rooted, nil);
if(rr){
print("----------------------------\n");
for(rp = rr; rp; rp = rp->next)
--- a/sys/src/cmd/ndb/dnserver.c
+++ b/sys/src/cmd/ndb/dnserver.c
@@ -171,7 +171,7 @@
name = mp->qd->owner->name;
type = mp->qd->type;
- rp = dnresolve(name, Cin, type, req, &mp->an, 0, recurse, 1, 0);
+ rp = dnresolve(name, Cin, type, req, &mp->an, 0, recurse, 1, nil);
/* don't return soa hints as answers, it's wrong */
if(rp && rp->db && !rp->auth && rp->type == Tsoa) {
--- a/sys/src/cmd/ndb/dnsgetip.c
+++ b/sys/src/cmd/ndb/dnsgetip.c
@@ -38,7 +38,7 @@
req.isslave = 1;
req.aborttime = NS2MS(nowns) + Maxreqtm;
- rr = dnresolve(name, Cin, type, &req, 0, 0, Recurse, 0, &status);
+ rr = dnresolve(name, Cin, type, &req, nil, 0, Recurse, 0, &status);
neg = rrremneg(&rr);
if(rr == nil || neg != nil){
if(neg != nil)
--- a/sys/src/cmd/ndb/dnstcp.c
+++ b/sys/src/cmd/ndb/dnstcp.c
@@ -265,8 +265,8 @@
return servers;
continue;
}
- list = dnresolve(servers->name, Cin, Ta, req, nil, 0, 1, 1, nil);
- rrcat(&list, dnresolve(servers->name, Cin, Taaaa, req, nil, 0, 1, 1, nil));
+ list = dnresolve(servers->name, Cin, Ta, req, nil, 0, Recurse, 0, nil);
+ rrcat(&list, dnresolve(servers->name, Cin, Taaaa, req, nil, 0, Recurse, 0, nil));
for(rp = list; rp != nil; rp = rp->next){
if(parseip(ip, rp->ip->name) == -1)
continue;