Browse Source

Retyped lxlee1102's fix for #11

Jeremy Sturdivant 10 years ago
parent
commit
e3e0217ca9
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/dnslib.c

+ 3
- 0
src/dnslib.c View File

491
 	if (dpa->type == T_A) {
491
 	if (dpa->type == T_A) {
492
 		memcpy(dpa->rdata, buf, rdlen);	/* 32bit address */
492
 		memcpy(dpa->rdata, buf, rdlen);	/* 32bit address */
493
 		count += rdlen;
493
 		count += rdlen;
494
+	} else if (dpa->type == T_AAAA) {
495
+		memcpy(dpa->rdata, buf, rdlen);	/* 128bit address */
496
+		count += rdlen;
494
 	} else if (dpa->type == T_MX) {
497
 	} else if (dpa->type == T_MX) {
495
 		memcpy(dpa->rdata, buf, 2);
498
 		memcpy(dpa->rdata, buf, 2);
496
 		if ((ui =
499
 		if ((ui =

Loading…
Cancel
Save