summaryrefslogtreecommitdiffabout
path: root/src/dnsbase.c
Side-by-side diff
Diffstat (limited to 'src/dnsbase.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/dnsbase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dnsbase.c b/src/dnsbase.c
index cf4b95a..cbb658d 100644
--- a/src/dnsbase.c
+++ b/src/dnsbase.c
@@ -244,13 +244,13 @@ struct loop_data {
char *answer; /* Answer buffer */
size_t answer_size; /* Size of answer buffer */
/* Return data: */
char *hbuf; /* Return buffer */
size_t hbsize; /* Size of return buffer */
- size_t hbcount; /* ?? */
+ size_t hbcount; /* Number of items returned */
time_t ttl; /* TTL value */
dns_status status; /* Status */
int atype; /* On input: desired answer type or T_ANY
On output: Answer type */
@@ -415,13 +415,13 @@ cname_loop_body(struct loop_data *lp)
lp->hbuf[lp->hbcount++] = 0;
lp->atype = T_PTR;
SET_STATUS(lp, dns_success);
break;
case T_TXT:
- if (lp->atype != T_ANY && lp->atype != type)
+ if (lp->atype != type)
continue;
l = cp[0];
if (lp->hbcount + l >= lp->hbsize)
break;
memcpy(lp->hbuf + lp->hbcount, cp + 1, l);
lp->hbcount += l;

Return to:

Send suggestions and report system problems to the System administrator.