aboutsummaryrefslogtreecommitdiff
path: root/src/dnsbase.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dnsbase.c')
-rw-r--r--src/dnsbase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dnsbase.c b/src/dnsbase.c
index cf4b95a4..cbb658d0 100644
--- a/src/dnsbase.c
+++ b/src/dnsbase.c
@@ -244,13 +244,13 @@ struct loop_data {
244 char *answer; /* Answer buffer */ 244 char *answer; /* Answer buffer */
245 size_t answer_size; /* Size of answer buffer */ 245 size_t answer_size; /* Size of answer buffer */
246 246
247 /* Return data: */ 247 /* Return data: */
248 char *hbuf; /* Return buffer */ 248 char *hbuf; /* Return buffer */
249 size_t hbsize; /* Size of return buffer */ 249 size_t hbsize; /* Size of return buffer */
250 size_t hbcount; /* ?? */ 250 size_t hbcount; /* Number of items returned */
251 251
252 time_t ttl; /* TTL value */ 252 time_t ttl; /* TTL value */
253 dns_status status; /* Status */ 253 dns_status status; /* Status */
254 int atype; /* On input: desired answer type or T_ANY 254 int atype; /* On input: desired answer type or T_ANY
255 On output: Answer type */ 255 On output: Answer type */
256 256
@@ -415,13 +415,13 @@ cname_loop_body(struct loop_data *lp)
415 lp->hbuf[lp->hbcount++] = 0; 415 lp->hbuf[lp->hbcount++] = 0;
416 lp->atype = T_PTR; 416 lp->atype = T_PTR;
417 SET_STATUS(lp, dns_success); 417 SET_STATUS(lp, dns_success);
418 break; 418 break;
419 419
420 case T_TXT: 420 case T_TXT:
421 if (lp->atype != T_ANY && lp->atype != type) 421 if (lp->atype != type)
422 continue; 422 continue;
423 l = cp[0]; 423 l = cp[0];
424 if (lp->hbcount + l >= lp->hbsize) 424 if (lp->hbcount + l >= lp->hbsize)
425 break; 425 break;
426 memcpy(lp->hbuf + lp->hbcount, cp + 1, l); 426 memcpy(lp->hbuf + lp->hbcount, cp + 1, l);
427 lp->hbcount += l; 427 lp->hbcount += l;

Return to:

Send suggestions and report system problems to the System administrator.