chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Parse searchlist; beginnings of paying attention.
[adns]
/
src
/
query.c
diff --git
a/src/query.c
b/src/query.c
index 666fdd705948c7714551bfb311734dc0932f0329..f710d3e7baa32095c27030a6f7bbe897b52d3ab3 100644
(file)
--- a/
src/query.c
+++ b/
src/query.c
@@
-113,7
+113,7
@@
int adns_submit(adns_state ads,
adns_query *query_r) {
qcontext ctx;
int id, r, ol;
adns_query *query_r) {
qcontext ctx;
int id, r, ol;
- vbuf vb;
+ vbuf vb
, search_vb
;
adns_status stat;
const typeinfo *typei;
struct timeval now;
adns_status stat;
const typeinfo *typei;
struct timeval now;
@@
-131,9
+131,9
@@
int adns_submit(adns_state ads,
adns__vbuf_init(&vb);
ol= strlen(owner);
adns__vbuf_init(&vb);
ol= strlen(owner);
- if (ol
<=1 || ol
>DNS_MAXDOMAIN+1) { stat= adns_s_querydomaintoolong; goto xit; }
+ if (ol>DNS_MAXDOMAIN+1) { stat= adns_s_querydomaintoolong; goto xit; }
- if (owner[ol-1]=='.' && owner[ol-2]!='\\') { flags &= ~adns_qf_search; ol--; }
+ if (o
l>=2 && o
wner[ol-1]=='.' && owner[ol-2]!='\\') { flags &= ~adns_qf_search; ol--; }
stat= adns__mkquery(ads,&vb,&id, owner,ol, typei,flags);
stat= adns__mkquery(ads,&vb,&id, owner,ol, typei,flags);